优化认证逻辑,无权限打印原因

This commit is contained in:
2025-04-28 10:05:44 +08:00
parent 129f842153
commit 370362b0d5
3 changed files with 32 additions and 92 deletions

View File

@@ -1,7 +1,6 @@
package web
import (
auth2 "platform/web/auth"
"platform/web/handlers"
"github.com/gofiber/fiber/v2"
@@ -29,7 +28,7 @@ func ApplyRouters(app *fiber.App) {
// 通道
channel := api.Group("/channel")
channel.Post("/create", handlers.CreateChannel)
channel.Post("/remove", auth2.PermitAll(), handlers.RemoveChannels)
channel.Post("/remove", handlers.RemoveChannels)
// 白名单
whitelist := api.Group("/whitelist")