From 5a8ca245668c3dbf087a621f0f61c187d6cf056d Mon Sep 17 00:00:00 2001 From: Shaun Walker Date: Tue, 6 Dec 2022 10:48:56 -0500 Subject: [PATCH] make casing consistent in route template definition and method parameter declation or else Swagger will not be able to resolve --- .../Modules/HtmlText/Controllers/HtmlTextController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Oqtane.Server/Modules/HtmlText/Controllers/HtmlTextController.cs b/Oqtane.Server/Modules/HtmlText/Controllers/HtmlTextController.cs index 7fb6a143..e6d64241 100644 --- a/Oqtane.Server/Modules/HtmlText/Controllers/HtmlTextController.cs +++ b/Oqtane.Server/Modules/HtmlText/Controllers/HtmlTextController.cs @@ -42,7 +42,7 @@ namespace Oqtane.Modules.HtmlText.Controllers } // GET api//5 - [HttpGet("{moduleid}")] + [HttpGet("{moduleId}")] [Authorize(Policy = PolicyNames.ViewModule)] public Models.HtmlText Get(int moduleId) { @@ -67,7 +67,7 @@ namespace Oqtane.Modules.HtmlText.Controllers } // GET api//5/6 - [HttpGet("{id}/{moduleid}")] + [HttpGet("{id}/{moduleId}")] [Authorize(Policy = PolicyNames.ViewModule)] public Models.HtmlText Get(int id, int moduleId) { @@ -103,7 +103,7 @@ namespace Oqtane.Modules.HtmlText.Controllers } // DELETE api//5 - [HttpDelete("{id}/{moduleid}")] + [HttpDelete("{id}/{moduleId}")] [Authorize(Policy = PolicyNames.EditModule)] public void Delete(int id, int moduleId) {