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