oc-shared/routers/commentsRouter.go

209 lines
8.9 KiB
Go
Raw Normal View History

2024-08-12 14:12:51 +02:00
package routers
import (
beego "github.com/beego/beego/v2/server/web"
"github.com/beego/beego/v2/server/web/context/param"
)
func init() {
2024-09-27 14:08:14 +02:00
beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"],
2024-08-12 14:12:51 +02:00
beego.ControllerComments{
Method: "Post",
Router: `/`,
AllowHTTPMethods: []string{"post"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-09-27 14:08:14 +02:00
beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"],
2024-08-12 14:12:51 +02:00
beego.ControllerComments{
Method: "GetAll",
Router: `/`,
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-09-27 14:08:14 +02:00
beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"],
2024-08-12 14:12:51 +02:00
beego.ControllerComments{
Method: "Put",
Router: `/:id`,
AllowHTTPMethods: []string{"put"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-09-27 14:08:14 +02:00
beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"],
2024-08-12 14:12:51 +02:00
beego.ControllerComments{
Method: "Get",
Router: `/:id`,
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-09-27 14:08:14 +02:00
beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"],
2024-08-12 14:12:51 +02:00
beego.ControllerComments{
Method: "Delete",
Router: `/:id`,
AllowHTTPMethods: []string{"delete"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-09-27 14:08:14 +02:00
beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"],
2024-08-12 14:12:51 +02:00
beego.ControllerComments{
2024-09-27 14:08:14 +02:00
Method: "AddPeer",
Router: `/:id/peer/:id2`,
AllowHTTPMethods: []string{"post"},
2024-08-12 14:12:51 +02:00
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-09-27 14:08:14 +02:00
beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"],
2024-08-12 14:12:51 +02:00
beego.ControllerComments{
2024-09-27 14:08:14 +02:00
Method: "RemovePeer",
Router: `/:id/peer/:id2`,
AllowHTTPMethods: []string{"delete"},
2024-08-12 14:12:51 +02:00
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-09-27 14:08:14 +02:00
beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"],
2024-08-12 14:12:51 +02:00
beego.ControllerComments{
2024-09-27 14:08:14 +02:00
Method: "AddRule",
Router: `/:id/rule/:id2`,
AllowHTTPMethods: []string{"post"},
2024-08-12 14:12:51 +02:00
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-09-27 14:08:14 +02:00
beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"],
2024-08-12 14:12:51 +02:00
beego.ControllerComments{
2024-09-27 14:08:14 +02:00
Method: "RemoveRule",
Router: `/:id/rule/:id2`,
AllowHTTPMethods: []string{"delete"},
2024-08-12 14:12:51 +02:00
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-09-27 14:08:14 +02:00
beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"],
2024-08-12 14:12:51 +02:00
beego.ControllerComments{
2024-09-27 14:08:14 +02:00
Method: "RemoveWorkflow",
Router: `/:id/workflow/:id2`,
AllowHTTPMethods: []string{"delete"},
2024-08-12 14:12:51 +02:00
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-09-27 14:08:14 +02:00
beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"],
2024-08-12 14:12:51 +02:00
beego.ControllerComments{
2024-09-27 14:08:14 +02:00
Method: "AddWorkflow",
Router: `/:id/workflow/:id2`,
AllowHTTPMethods: []string{"post"},
2024-08-12 14:12:51 +02:00
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-09-27 14:08:14 +02:00
beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"],
2024-08-26 13:45:50 +02:00
beego.ControllerComments{
2024-09-27 14:08:14 +02:00
Method: "AddWorkspace",
Router: `/:id/workspace/:id2`,
2024-08-26 13:45:50 +02:00
AllowHTTPMethods: []string{"post"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-09-27 14:08:14 +02:00
beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"],
2024-08-26 15:39:56 +02:00
beego.ControllerComments{
2024-09-27 14:08:14 +02:00
Method: "RemoveWorkspace",
Router: `/:id/workspace/:id2`,
2024-08-26 15:39:56 +02:00
AllowHTTPMethods: []string{"delete"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-09-27 14:08:14 +02:00
beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:CollaborativeAreaController"],
2024-08-26 13:45:50 +02:00
beego.ControllerComments{
2024-09-27 14:08:14 +02:00
Method: "Search",
Router: `/search/:search`,
AllowHTTPMethods: []string{"get"},
2024-08-26 13:45:50 +02:00
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-09-27 14:08:14 +02:00
beego.GlobalControllerRouter["oc-shared/controllers:RuleController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:RuleController"],
2024-08-26 15:39:56 +02:00
beego.ControllerComments{
2024-09-27 14:08:14 +02:00
Method: "Post",
Router: `/`,
AllowHTTPMethods: []string{"post"},
2024-08-26 15:39:56 +02:00
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-09-27 14:08:14 +02:00
beego.GlobalControllerRouter["oc-shared/controllers:RuleController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:RuleController"],
2024-08-26 15:39:56 +02:00
beego.ControllerComments{
2024-09-27 14:08:14 +02:00
Method: "GetAll",
Router: `/`,
AllowHTTPMethods: []string{"get"},
2024-08-26 15:39:56 +02:00
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-09-27 14:08:14 +02:00
beego.GlobalControllerRouter["oc-shared/controllers:RuleController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:RuleController"],
2024-08-26 13:45:50 +02:00
beego.ControllerComments{
2024-09-27 14:08:14 +02:00
Method: "Put",
Router: `/:id`,
AllowHTTPMethods: []string{"put"},
2024-08-26 13:45:50 +02:00
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-09-27 14:08:14 +02:00
beego.GlobalControllerRouter["oc-shared/controllers:RuleController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:RuleController"],
2024-08-26 13:45:50 +02:00
beego.ControllerComments{
2024-09-27 14:08:14 +02:00
Method: "Get",
Router: `/:id`,
AllowHTTPMethods: []string{"get"},
2024-08-26 13:45:50 +02:00
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-09-27 14:08:14 +02:00
beego.GlobalControllerRouter["oc-shared/controllers:RuleController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:RuleController"],
2024-08-26 15:39:56 +02:00
beego.ControllerComments{
2024-09-27 14:08:14 +02:00
Method: "Delete",
Router: `/:id`,
2024-08-26 15:39:56 +02:00
AllowHTTPMethods: []string{"delete"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-09-27 14:08:14 +02:00
beego.GlobalControllerRouter["oc-shared/controllers:RuleController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:RuleController"],
2024-08-12 14:12:51 +02:00
beego.ControllerComments{
Method: "Search",
Router: `/search/:search`,
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
beego.GlobalControllerRouter["oc-shared/controllers:VersionController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:VersionController"],
beego.ControllerComments{
Method: "GetAll",
Router: `/`,
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-08-21 12:28:21 +02:00
beego.GlobalControllerRouter["oc-shared/controllers:VersionController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:VersionController"],
beego.ControllerComments{
Method: "Status",
Router: `/status`,
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-08-12 14:12:51 +02:00
}