🐛 Fix map routes panic

This commit is contained in:
LittleSheep 2024-12-28 23:51:17 +08:00
parent 90fb9960cc
commit 5749b5bfb1

View File

@ -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)