feat: 新增客户端授权管理和开放接口
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
|
||||
"be.ems/src/framework/logger"
|
||||
"be.ems/src/framework/middleware"
|
||||
monitorController "be.ems/src/modules/monitor/controller"
|
||||
"be.ems/src/modules/oauth2/controller"
|
||||
)
|
||||
|
||||
@@ -70,14 +69,6 @@ func Setup(router *gin.Engine) {
|
||||
)
|
||||
}
|
||||
|
||||
// ==== 开放接口 ====
|
||||
|
||||
openApiGroup := router.Group("/open-api")
|
||||
{
|
||||
openApiGroup.GET("/monitor/system",
|
||||
middleware.AuthorizeOauth2(nil),
|
||||
monitorController.NewSystem.Info,
|
||||
)
|
||||
}
|
||||
|
||||
// ==== 授权认证的开放接口 ====
|
||||
openAPI(router)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user