56 lines
2.2 KiB
Go
56 lines
2.2 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-scheduler/controllers:VersionController"] = append(beego.GlobalControllerRouter["oc-scheduler/controllers:VersionController"],
|
|
beego.ControllerComments{
|
|
Method: "GetAll",
|
|
Router: `/`,
|
|
AllowHTTPMethods: []string{"get"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-scheduler/controllers:WorkflowExecutionController"] = append(beego.GlobalControllerRouter["oc-scheduler/controllers:WorkflowExecutionController"],
|
|
beego.ControllerComments{
|
|
Method: "GetAll",
|
|
Router: `/`,
|
|
AllowHTTPMethods: []string{"get"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-scheduler/controllers:WorkflowExecutionController"] = append(beego.GlobalControllerRouter["oc-scheduler/controllers:WorkflowExecutionController"],
|
|
beego.ControllerComments{
|
|
Method: "Get",
|
|
Router: `/:id`,
|
|
AllowHTTPMethods: []string{"get"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-scheduler/controllers:WorkflowExecutionController"] = append(beego.GlobalControllerRouter["oc-scheduler/controllers:WorkflowExecutionController"],
|
|
beego.ControllerComments{
|
|
Method: "Check",
|
|
Router: `/check/:start_date/:end_date`,
|
|
AllowHTTPMethods: []string{"get"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
beego.GlobalControllerRouter["oc-scheduler/controllers:WorkflowExecutionController"] = append(beego.GlobalControllerRouter["oc-scheduler/controllers:WorkflowExecutionController"],
|
|
beego.ControllerComments{
|
|
Method: "Search",
|
|
Router: `/search/:start_date/:end_date`,
|
|
AllowHTTPMethods: []string{"get"},
|
|
MethodParams: param.Make(),
|
|
Filters: nil,
|
|
Params: nil})
|
|
|
|
}
|