🐛 Fix bot related bot key apis path error

This commit is contained in:
LittleSheep 2024-08-25 21:34:54 +08:00
parent 2b2e7b5a89
commit 4b0910f6eb
2 changed files with 4 additions and 7 deletions

View File

@ -4,10 +4,7 @@
<option name="autoReloadType" value="ALL" />
</component>
<component name="ChangeListManager">
<list default="true" id="3fefb2c4-b6f9-466b-a523-53352e8d6f95" name="更改" comment=":bug: Fix compare perm node function">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pkg/internal/server/api/bot_token_api.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/internal/server/api/bot_token_api.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pkg/internal/server/api/bots_api.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/internal/server/api/bots_api.go" afterDir="false" />
<list default="true" id="3fefb2c4-b6f9-466b-a523-53352e8d6f95" name="更改" comment=":sparkles: Bot related bot key apis">
<change beforePath="$PROJECT_DIR$/pkg/internal/server/api/index.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/internal/server/api/index.go" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
@ -155,7 +152,6 @@
</option>
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value=":bug: Bug fixes" />
<MESSAGE value=":bug: Fix oauth ticket need mfa" />
<MESSAGE value=":arrow_up: Support new auth api" />
<MESSAGE value=":recycle: Refactored relation system&#10;:arrow_up: Support new realm &amp; relation api" />
@ -180,7 +176,8 @@
<MESSAGE value=":bug: Fix query issue" />
<MESSAGE value=":bug: Fix compare perm node panic" />
<MESSAGE value=":bug: Fix compare perm node function" />
<option name="LAST_COMMIT_MESSAGE" value=":bug: Fix compare perm node function" />
<MESSAGE value=":sparkles: Bot related bot key apis" />
<option name="LAST_COMMIT_MESSAGE" value=":sparkles: Bot related bot key apis" />
</component>
<component name="VgoProject">
<settings-migrated>true</settings-migrated>

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)