feat:完善项目
This commit is contained in:
@ -46,8 +46,9 @@ func (this *Router) registerAPI() {
|
||||
// Websocket socket接口管理
|
||||
{
|
||||
_api := new(api.Websocket)
|
||||
v1.GET("/ws", _api.Ws)
|
||||
v1.GET("/pong", _api.Pong)
|
||||
this.handler.GET("/ws", _api.Ws)
|
||||
this.handler.GET("/pong", _api.Pong)
|
||||
this.handler.GET("/publish", _api.Publish)
|
||||
}
|
||||
// Captcha 验证码接口管理
|
||||
v1.GET("/captcha", new(api.Captcha).Captcha)
|
||||
@ -68,6 +69,8 @@ func (this *Router) registerAPI() {
|
||||
configV1.POST("/edit", _api.Edit)
|
||||
configV1.GET("/area", _api.Area)
|
||||
configV1.POST("/breakdown", _api.Breakdown)
|
||||
configV1.POST("/breakdown/add", _api.BreakdownAdd)
|
||||
configV1.POST("/breakdown/edit", _api.BreakdownEdit)
|
||||
}
|
||||
// Tenant 租户单位管理
|
||||
tenantV1 := v1.Group("/tenant")
|
||||
|
Reference in New Issue
Block a user