137 lines
5.5 KiB
Go
137 lines
5.5 KiB
Go
package routers
|
|
|
|
import (
|
|
beego "github.com/beego/beego/v2/server/web"
|
|
"github.com/beego/beego/v2/server/web/context/param"
|
|
)
|
|
|
|
func init() {
|
|
|
|
beego.GlobalControllerRouter["oc-shared/controllers:RuleController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:RuleController"],
|
|
beego.ControllerComments{
|
|
Method: "Post",
|
|
Router: `/`,
|
|
AllowHTTPMethods: []string{"post"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-shared/controllers:RuleController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:RuleController"],
|
|
beego.ControllerComments{
|
|
Method: "GetAll",
|
|
Router: `/`,
|
|
AllowHTTPMethods: []string{"get"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-shared/controllers:RuleController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:RuleController"],
|
|
beego.ControllerComments{
|
|
Method: "Put",
|
|
Router: `/:id`,
|
|
AllowHTTPMethods: []string{"put"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-shared/controllers:RuleController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:RuleController"],
|
|
beego.ControllerComments{
|
|
Method: "Get",
|
|
Router: `/:id`,
|
|
AllowHTTPMethods: []string{"get"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-shared/controllers:RuleController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:RuleController"],
|
|
beego.ControllerComments{
|
|
Method: "Delete",
|
|
Router: `/:id`,
|
|
AllowHTTPMethods: []string{"delete"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-shared/controllers:RuleController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:RuleController"],
|
|
beego.ControllerComments{
|
|
Method: "Search",
|
|
Router: `/search/:search`,
|
|
AllowHTTPMethods: []string{"get"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-shared/controllers:SharedWorkspaceController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:SharedWorkspaceController"],
|
|
beego.ControllerComments{
|
|
Method: "Post",
|
|
Router: `/`,
|
|
AllowHTTPMethods: []string{"post"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-shared/controllers:SharedWorkspaceController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:SharedWorkspaceController"],
|
|
beego.ControllerComments{
|
|
Method: "GetAll",
|
|
Router: `/`,
|
|
AllowHTTPMethods: []string{"get"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-shared/controllers:SharedWorkspaceController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:SharedWorkspaceController"],
|
|
beego.ControllerComments{
|
|
Method: "Put",
|
|
Router: `/:id`,
|
|
AllowHTTPMethods: []string{"put"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-shared/controllers:SharedWorkspaceController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:SharedWorkspaceController"],
|
|
beego.ControllerComments{
|
|
Method: "Get",
|
|
Router: `/:id`,
|
|
AllowHTTPMethods: []string{"get"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-shared/controllers:SharedWorkspaceController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:SharedWorkspaceController"],
|
|
beego.ControllerComments{
|
|
Method: "Delete",
|
|
Router: `/:id`,
|
|
AllowHTTPMethods: []string{"delete"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-shared/controllers:SharedWorkspaceController"] = append(beego.GlobalControllerRouter["oc-shared/controllers:SharedWorkspaceController"],
|
|
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})
|
|
|
|
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})
|
|
|
|
}
|