From cff702829046c71284184384ed0096bc8fea772f Mon Sep 17 00:00:00 2001 From: "Matthew D. Groves" Date: Thu, 28 Sep 2023 10:32:47 -0400 Subject: [PATCH] #36 corrected endpoint routes --- .../Conduit.Web/Articles/Controllers/ArticlesController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Conduit/Conduit.Web/Articles/Controllers/ArticlesController.cs b/Conduit/Conduit.Web/Articles/Controllers/ArticlesController.cs index 6b1f9e7e49..d773221edf 100644 --- a/Conduit/Conduit.Web/Articles/Controllers/ArticlesController.cs +++ b/Conduit/Conduit.Web/Articles/Controllers/ArticlesController.cs @@ -69,7 +69,7 @@ public async Task CreateArticle([FromBody] CreateArticleSubmitMod /// Unauthorized, likely because credentials are incorrect /// Article was unable to be favorited [HttpPost] - [Route("/api/article/{slug}/favorite")] + [Route("/api/articles/{slug}/favorite")] [Authorize] public async Task FavoriteArticle(string slug) { @@ -105,7 +105,7 @@ public async Task FavoriteArticle(string slug) /// Unauthorized, likely because credentials are incorrect /// Article was unable to be unfavorited [HttpDelete] - [Route("/api/article/{slug}/favorite")] + [Route("/api/articles/{slug}/unfavorite")] [Authorize] public async Task UnfavoriteArticle(string slug) { @@ -140,7 +140,7 @@ public async Task UnfavoriteArticle(string slug) /// Successful retrieval, returns the Article /// Article updates are invalid [HttpGet] - [Route("/api/article/{slug}")] + [Route("/api/articles/{slug}")] [AllowAnonymous] public async Task Get(string slug) {