15 lines
299 B
Go
15 lines
299 B
Go
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))
|
|
})
|
|
})
|
|
}
|