🐛 Fix path parameters misplaced

This commit is contained in:
2024-08-25 21:35:22 +08:00
parent 4b0910f6eb
commit 52c06d9826
2 changed files with 4 additions and 4 deletions

View File

@ -107,7 +107,7 @@ func MapAPIs(app *fiber.App, baseURL string) {
bots.Post("/", createBot)
bots.Delete("/:botId", deleteBot)
keys := bots.Group("/keys/:botId").Name("Bots' Keys")
keys := bots.Group("/:botId/keys").Name("Bots' Keys")
{
keys.Get("/", listBotKeys)
keys.Post("/", createBotKey)