From 5607c533295c44fe4b17e4a02e3fd51561c59d88 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sat, 4 Sep 2021 13:41:00 +0100 Subject: [PATCH] Fixes the base resource --- src/isnd/ApiConfig.cs | 2 +- src/isnd/Controllers/PackagesController.cs | 2 +- src/isnd/Services/PackageManager.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/isnd/ApiConfig.cs b/src/isnd/ApiConfig.cs index 5013e6a..e358ba3 100644 --- a/src/isnd/ApiConfig.cs +++ b/src/isnd/ApiConfig.cs @@ -4,7 +4,7 @@ namespace isnd { public const string BaseApiPath = "/"; public const string Publish = "put"; - public const string Base = "index"; + public const string Base = "index.json"; public const string Catalog = "catalog"; public const string Get = "get"; public const string Search = "search"; diff --git a/src/isnd/Controllers/PackagesController.cs b/src/isnd/Controllers/PackagesController.cs index 5c1edbe..f3d4f8f 100644 --- a/src/isnd/Controllers/PackagesController.cs +++ b/src/isnd/Controllers/PackagesController.cs @@ -93,7 +93,7 @@ namespace isnd.Controllers } - const string _pkgRootPrefix = "~" + ApiConfig.BaseApiPath; + const string _pkgRootPrefix = "~/" + ApiConfig.BaseApiPath ; [HttpGet(_pkgRootPrefix + ApiConfig.Base)] diff --git a/src/isnd/Services/PackageManager.cs b/src/isnd/Services/PackageManager.cs index cb435c6..09f9175 100644 --- a/src/isnd/Services/PackageManager.cs +++ b/src/isnd/Services/PackageManager.cs @@ -22,7 +22,7 @@ namespace isnd.Services { this.dbContext = dbContext; isndSettings = siteConfigOptionsOptions.Value; - extUrl = isndSettings.ExternalUrl ; + extUrl = isndSettings.ExternalUrl + "/"; CurrentCatalogIndex = GetCatalogIndex(); }