From 131778780c96e3f60dc6b491c22714c4669367a5 Mon Sep 17 00:00:00 2001 From: LittleSheep <littlesheep.code@hotmail.com> Date: Sun, 6 Apr 2025 13:32:29 +0800 Subject: [PATCH] :bug: Fix API stacking routing issue --- pkg/internal/server/api/index.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/internal/server/api/index.go b/pkg/internal/server/api/index.go index 41bf508..68f15e5 100644 --- a/pkg/internal/server/api/index.go +++ b/pkg/internal/server/api/index.go @@ -17,9 +17,6 @@ func MapAPIs(app *fiber.App, baseURL string) { subscription := api.Group("/subscriptions").Name("Subscriptions") { - subscription.Get("/", listFeedItem) - subscription.Get("/:id", getFeedItem) - feed := subscription.Group("/feed").Name("Feed") { feed.Get("/", listFeedSubscriptions) @@ -30,6 +27,9 @@ func MapAPIs(app *fiber.App, baseURL string) { feed.Post("/:id/toggle", toggleFeedSubscription) feed.Delete("/:id", deleteFeedSubscription) } + + subscription.Get("/", listFeedItem) + subscription.Get("/:id", getFeedItem) } } }