grop path
This commit is contained in:
parent
ccffdb1381
commit
27dc38094c
|
@ -11,9 +11,12 @@ func initRoutge(engine *gin.Engine) {
|
||||||
staff := new(controller.Staff)
|
staff := new(controller.Staff)
|
||||||
base := new(controller.Base)
|
base := new(controller.Base)
|
||||||
apiGroup := engine.Group("/api")
|
apiGroup := engine.Group("/api")
|
||||||
|
group := engine.Group("/")
|
||||||
apiGroup.Use(base.Recovery)
|
apiGroup.Use(base.Recovery)
|
||||||
|
group.Use(base.Recovery)
|
||||||
apiGroup.Any("/qyweixin/approve", qyweixin.Approve)
|
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/*")
|
engine.LoadHTMLGlob("conf/template/*")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue