优化认证逻辑,无权限打印原因
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user