完善通道删除与定时失效功能
This commit is contained in:
@@ -2,7 +2,6 @@ package web
|
||||
|
||||
import (
|
||||
"platform/web/handlers"
|
||||
"platform/web/services"
|
||||
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
@@ -18,10 +17,6 @@ func ApplyRouters(app *fiber.App) {
|
||||
|
||||
// 通道
|
||||
channel := api.Group("/channel")
|
||||
channel.Post("/create", Permit([]services.PayloadType{
|
||||
services.PayloadClientConfidential,
|
||||
services.PayloadClientPublic,
|
||||
services.PayloadUser,
|
||||
services.PayloadAdmin,
|
||||
}), handlers.CreateChannel)
|
||||
channel.Post("/create", PermitAll(), handlers.CreateChannel)
|
||||
channel.Post("/remove", PermitAll(), handlers.RemoveChannels)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user