Fixes the base resource

broken/ef
Paul Schneider 3 years ago
parent 71de903f13
commit 5607c53329
3 changed files with 3 additions and 3 deletions

@ -4,7 +4,7 @@ namespace isnd
{ {
public const string BaseApiPath = "/"; public const string BaseApiPath = "/";
public const string Publish = "put"; public const string Publish = "put";
public const string Base = "index"; public const string Base = "index.json";
public const string Catalog = "catalog"; public const string Catalog = "catalog";
public const string Get = "get"; public const string Get = "get";
public const string Search = "search"; public const string Search = "search";

@ -93,7 +93,7 @@ namespace isnd.Controllers
} }
const string _pkgRootPrefix = "~" + ApiConfig.BaseApiPath; const string _pkgRootPrefix = "~/" + ApiConfig.BaseApiPath ;
[HttpGet(_pkgRootPrefix + ApiConfig.Base)] [HttpGet(_pkgRootPrefix + ApiConfig.Base)]

@ -22,7 +22,7 @@ namespace isnd.Services
{ {
this.dbContext = dbContext; this.dbContext = dbContext;
isndSettings = siteConfigOptionsOptions.Value; isndSettings = siteConfigOptionsOptions.Value;
extUrl = isndSettings.ExternalUrl ; extUrl = isndSettings.ExternalUrl + "/";
CurrentCatalogIndex = GetCatalogIndex(); CurrentCatalogIndex = GetCatalogIndex();
} }

Loading…