🐛 Fix bot related bot key apis path error

This commit is contained in:
2024-08-25 21:34:54 +08:00
parent 2b2e7b5a89
commit 4b0910f6eb
2 changed files with 4 additions and 7 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").Name("Bots' Keys")
keys := bots.Group("/keys/:botId").Name("Bots' Keys")
{
keys.Get("/", listBotKeys)
keys.Post("/", createBotKey)