245 lines
10 KiB
Go
245 lines
10 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-catalog/controllers:DataController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:DataController"],
|
|
beego.ControllerComments{
|
|
Method: "Post",
|
|
Router: `/`,
|
|
AllowHTTPMethods: []string{"post"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:DataController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:DataController"],
|
|
beego.ControllerComments{
|
|
Method: "GetAll",
|
|
Router: `/`,
|
|
AllowHTTPMethods: []string{"get"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:DataController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:DataController"],
|
|
beego.ControllerComments{
|
|
Method: "Put",
|
|
Router: `/:id`,
|
|
AllowHTTPMethods: []string{"put"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:DataController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:DataController"],
|
|
beego.ControllerComments{
|
|
Method: "Get",
|
|
Router: `/:id`,
|
|
AllowHTTPMethods: []string{"get"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:DataController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:DataController"],
|
|
beego.ControllerComments{
|
|
Method: "Delete",
|
|
Router: `/:id`,
|
|
AllowHTTPMethods: []string{"delete"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:DatacenterController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:DatacenterController"],
|
|
beego.ControllerComments{
|
|
Method: "Post",
|
|
Router: `/`,
|
|
AllowHTTPMethods: []string{"post"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:DatacenterController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:DatacenterController"],
|
|
beego.ControllerComments{
|
|
Method: "GetAll",
|
|
Router: `/`,
|
|
AllowHTTPMethods: []string{"get"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:DatacenterController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:DatacenterController"],
|
|
beego.ControllerComments{
|
|
Method: "Put",
|
|
Router: `/:id`,
|
|
AllowHTTPMethods: []string{"put"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:DatacenterController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:DatacenterController"],
|
|
beego.ControllerComments{
|
|
Method: "Get",
|
|
Router: `/:id`,
|
|
AllowHTTPMethods: []string{"get"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:DatacenterController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:DatacenterController"],
|
|
beego.ControllerComments{
|
|
Method: "Delete",
|
|
Router: `/:id`,
|
|
AllowHTTPMethods: []string{"delete"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:ProcessingController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:ProcessingController"],
|
|
beego.ControllerComments{
|
|
Method: "Post",
|
|
Router: `/`,
|
|
AllowHTTPMethods: []string{"post"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:ProcessingController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:ProcessingController"],
|
|
beego.ControllerComments{
|
|
Method: "GetAll",
|
|
Router: `/`,
|
|
AllowHTTPMethods: []string{"get"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:ProcessingController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:ProcessingController"],
|
|
beego.ControllerComments{
|
|
Method: "Put",
|
|
Router: `/:id`,
|
|
AllowHTTPMethods: []string{"put"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:ProcessingController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:ProcessingController"],
|
|
beego.ControllerComments{
|
|
Method: "Get",
|
|
Router: `/:id`,
|
|
AllowHTTPMethods: []string{"get"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:ProcessingController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:ProcessingController"],
|
|
beego.ControllerComments{
|
|
Method: "Delete",
|
|
Router: `/:id`,
|
|
AllowHTTPMethods: []string{"delete"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:StorageController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:StorageController"],
|
|
beego.ControllerComments{
|
|
Method: "Post",
|
|
Router: `/`,
|
|
AllowHTTPMethods: []string{"post"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:StorageController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:StorageController"],
|
|
beego.ControllerComments{
|
|
Method: "GetAll",
|
|
Router: `/`,
|
|
AllowHTTPMethods: []string{"get"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:StorageController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:StorageController"],
|
|
beego.ControllerComments{
|
|
Method: "Put",
|
|
Router: `/:id`,
|
|
AllowHTTPMethods: []string{"put"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:StorageController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:StorageController"],
|
|
beego.ControllerComments{
|
|
Method: "Get",
|
|
Router: `/:id`,
|
|
AllowHTTPMethods: []string{"get"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:StorageController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:StorageController"],
|
|
beego.ControllerComments{
|
|
Method: "Delete",
|
|
Router: `/:id`,
|
|
AllowHTTPMethods: []string{"delete"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:VersionController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:VersionController"],
|
|
beego.ControllerComments{
|
|
Method: "GetAll",
|
|
Router: `/`,
|
|
AllowHTTPMethods: []string{"get"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:WorkflowController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:WorkflowController"],
|
|
beego.ControllerComments{
|
|
Method: "Post",
|
|
Router: `/`,
|
|
AllowHTTPMethods: []string{"post"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:WorkflowController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:WorkflowController"],
|
|
beego.ControllerComments{
|
|
Method: "GetAll",
|
|
Router: `/`,
|
|
AllowHTTPMethods: []string{"get"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:WorkflowController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:WorkflowController"],
|
|
beego.ControllerComments{
|
|
Method: "Put",
|
|
Router: `/:id`,
|
|
AllowHTTPMethods: []string{"put"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:WorkflowController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:WorkflowController"],
|
|
beego.ControllerComments{
|
|
Method: "Get",
|
|
Router: `/:id`,
|
|
AllowHTTPMethods: []string{"get"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-catalog/controllers:WorkflowController"] = append(beego.GlobalControllerRouter["oc-catalog/controllers:WorkflowController"],
|
|
beego.ControllerComments{
|
|
Method: "Delete",
|
|
Router: `/:id`,
|
|
AllowHTTPMethods: []string{"delete"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
}
|