From 5749b5bfb136355fa2c8a8f26e3d8304f7aa85ca Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 28 Dec 2024 23:51:17 +0800 Subject: [PATCH] :bug: Fix map routes panic --- 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 c4154dc..62cdf65 100644 --- a/pkg/internal/server/api/index.go +++ b/pkg/internal/server/api/index.go @@ -18,7 +18,7 @@ func MapAPIs(app *fiber.App, baseURL string) { boost.Put("/:id", sec.ValidatorMiddleware, updateBoost) } - pools := api.Get("/pools").Name("Pools API") + pools := api.Group("/pools").Name("Pools API") { pools.Get("/", listPool) pools.Get("/:id", getPool)