From 45698db1996a03c4718dd38218d848e8d2e90f88 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 16 Sep 2024 23:04:35 +0800 Subject: [PATCH] :bug: Fix reply featured api path issue --- pkg/internal/server/api/index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/server/api/index.go b/pkg/internal/server/api/index.go index 390a596..f6ce7fb 100644 --- a/pkg/internal/server/api/index.go +++ b/pkg/internal/server/api/index.go @@ -42,7 +42,7 @@ func MapAPIs(app *fiber.App, baseURL string) { posts.Delete("/:postId", deletePost) posts.Get("/:postId/replies", listPostReplies) - posts.Get("/:postId/featured", listPostFeaturedReply) + posts.Get("/:postId/replies/featured", listPostFeaturedReply) } api.Get("/categories", listCategories)