oc-shared/routers/router.go

36 lines
751 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",
2024-10-15 11:00:39 +02:00
beego.NSNamespace("/collaborative_area",
2024-08-12 14:12:51 +02:00
beego.NSInclude(
2024-09-27 14:08:14 +02:00
&controllers.CollaborativeAreaController{},
2024-08-12 14:12:51 +02:00
),
2024-10-15 11:00:39 +02:00
beego.NSNamespace("/rule",
beego.NSInclude(
&controllers.RuleController{},
),
2024-08-12 14:12:51 +02:00
),
),
beego.NSNamespace("/version",
beego.NSInclude(
&controllers.VersionController{},
),
),
)
beego.AddNamespace(ns)
}