初始
This commit is contained in:
12
api/project/router.go
Normal file
12
api/project/router.go
Normal file
@ -0,0 +1,12 @@
|
||||
package project
|
||||
|
||||
import "github.com/gogf/gf/v2/net/ghttp"
|
||||
|
||||
func InitProjectAPI(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(Project))
|
||||
})
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user