初始
This commit is contained in:
14
api/saft_hat/router.go
Normal file
14
api/saft_hat/router.go
Normal file
@ -0,0 +1,14 @@
|
||||
package saft_hat
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/net/ghttp"
|
||||
)
|
||||
|
||||
func InitHatAPI(group *ghttp.RouterGroup) {
|
||||
group.Middleware(ghttp.MiddlewareCORS)
|
||||
group.Group("/manage", func(group *ghttp.RouterGroup) {
|
||||
group.Group("/api/v1", func(group *ghttp.RouterGroup) {
|
||||
group.Bind(new(Hat))
|
||||
})
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user