oc-shared/routers/router.go

37 lines
793 B
Go
Raw Normal View History

2024-08-12 14:12:51 +02:00
// @APIVersion 1.0.0
// @Title beego Test API
// @Description beego has a very cool tools to autogenerate documents for your API
// @Contact astaxie@gmail.com
// @TermsOfServiceUrl http://beego.me/
// @License Apache 2.0
// @LicenseUrl http://www.apache.org/licenses/LICENSE-2.0.html
package routers
import (
"oc-shared/controllers"
beego "github.com/beego/beego/v2/server/web"
)
func init() {
2024-08-22 10:49:26 +02:00
ns := beego.NewNamespace("/oc",
beego.NSNamespace("/shared/workspace",
2024-08-12 14:12:51 +02:00
beego.NSInclude(
&controllers.SharedWorkspaceController{},
),
),
2024-08-22 10:49:26 +02:00
beego.NSNamespace("/shared/workspace/rule",
2024-08-12 14:12:51 +02:00
beego.NSInclude(
&controllers.RuleController{},
),
),
beego.NSNamespace("/version",
beego.NSInclude(
&controllers.VersionController{},
),
),
)
beego.AddNamespace(ns)
}