完善通道创建与同步流程
This commit is contained in:
@@ -2,6 +2,7 @@ package web
|
||||
|
||||
import (
|
||||
"platform/web/handlers"
|
||||
"platform/web/services"
|
||||
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
@@ -17,5 +18,10 @@ func ApplyRouters(app *fiber.App) {
|
||||
|
||||
// 通道
|
||||
channel := api.Group("/channel")
|
||||
channel.Post("/create", PermitUser(), handlers.CreateChannel)
|
||||
channel.Post("/create", Permit([]services.PayloadType{
|
||||
services.PayloadClientConfidential,
|
||||
services.PayloadClientPublic,
|
||||
services.PayloadUser,
|
||||
services.PayloadAdmin,
|
||||
}), handlers.CreateChannel)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user