oc-shared/routers/router.go

37 lines
760 B
Go
Raw Normal View History

2024-08-12 14:12:51 +02:00
// @APIVersion 1.0.0
2024-09-05 09:30:42 +02:00
// @Title oc-shared
// @Description Manages shared workspaces and their synchronization
// @Contact admin@o-cloud.io
// @TermsOfServiceUrl http://cloud.o-forge.io/
// @License MIT
// @LicenseUrl https://opensource.org/license/mit
2024-08-12 14:12:51 +02:00
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)
}