grop path

This commit is contained in:
jiangyong27 2023-09-05 19:45:04 +08:00
parent ccffdb1381
commit 27dc38094c
1 changed files with 4 additions and 1 deletions

View File

@ -11,9 +11,12 @@ func initRoutge(engine *gin.Engine) {
staff := new(controller.Staff)
base := new(controller.Base)
apiGroup := engine.Group("/api")
group := engine.Group("/")
apiGroup.Use(base.Recovery)
group.Use(base.Recovery)
apiGroup.Any("/qyweixin/approve", qyweixin.Approve)
apiGroup.GET("/staff/salary", staff.Salary)
group.Any("/qyweixin/approve", qyweixin.Approve)
group.GET("/staff/salary", staff.Salary)
engine.LoadHTMLGlob("conf/template/*")
}