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/
|
2024-10-03 09:54:13 +02:00
|
|
|
// @License AGPL
|
|
|
|
// @LicenseUrl https://www.gnu.org/licenses/agpl-3.0.html
|
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-10-30 10:45:04 +01: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{},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
2024-10-30 10:45:04 +01:00
|
|
|
|
2024-08-12 14:12:51 +02:00
|
|
|
beego.AddNamespace(ns)
|
|
|
|
}
|