2024-07-11 11:40:11 +02:00
|
|
|
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-workflow/controllers:VersionController"] = append(beego.GlobalControllerRouter["oc-workflow/controllers:VersionController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "GetAll",
|
|
|
|
Router: `/`,
|
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-08-21 12:35:06 +02:00
|
|
|
beego.GlobalControllerRouter["oc-workflow/controllers:VersionController"] = append(beego.GlobalControllerRouter["oc-workflow/controllers:VersionController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Status",
|
|
|
|
Router: `/status`,
|
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-07-11 11:40:11 +02:00
|
|
|
beego.GlobalControllerRouter["oc-workflow/controllers:WorkflowController"] = append(beego.GlobalControllerRouter["oc-workflow/controllers:WorkflowController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Post",
|
|
|
|
Router: `/`,
|
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-07-24 10:25:08 +02:00
|
|
|
beego.GlobalControllerRouter["oc-workflow/controllers:WorkflowController"] = append(beego.GlobalControllerRouter["oc-workflow/controllers:WorkflowController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "GetAll",
|
|
|
|
Router: `/`,
|
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-workflow/controllers:WorkflowController"] = append(beego.GlobalControllerRouter["oc-workflow/controllers:WorkflowController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Put",
|
|
|
|
Router: `/:id`,
|
|
|
|
AllowHTTPMethods: []string{"put"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-07-11 11:40:11 +02:00
|
|
|
beego.GlobalControllerRouter["oc-workflow/controllers:WorkflowController"] = append(beego.GlobalControllerRouter["oc-workflow/controllers:WorkflowController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Get",
|
2024-07-24 10:25:08 +02:00
|
|
|
Router: `/:id`,
|
2024-07-11 11:40:11 +02:00
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-workflow/controllers:WorkflowController"] = append(beego.GlobalControllerRouter["oc-workflow/controllers:WorkflowController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Delete",
|
2024-07-24 10:25:08 +02:00
|
|
|
Router: `/:id`,
|
2024-07-11 11:40:11 +02:00
|
|
|
AllowHTTPMethods: []string{"delete"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-workflow/controllers:WorkflowController"] = append(beego.GlobalControllerRouter["oc-workflow/controllers:WorkflowController"],
|
|
|
|
beego.ControllerComments{
|
2024-08-13 11:36:53 +02:00
|
|
|
Method: "Check",
|
2024-08-26 11:18:26 +02:00
|
|
|
Router: `/check/:id/:start_date/:end_date`,
|
2024-08-06 11:09:38 +02:00
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-08-13 11:36:53 +02:00
|
|
|
beego.GlobalControllerRouter["oc-workflow/controllers:WorkflowController"] = append(beego.GlobalControllerRouter["oc-workflow/controllers:WorkflowController"],
|
2024-07-24 10:25:08 +02:00
|
|
|
beego.ControllerComments{
|
2024-08-13 11:36:53 +02:00
|
|
|
Method: "Publish",
|
|
|
|
Router: `/publish/:id`,
|
2024-07-24 10:25:08 +02:00
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-08-13 11:36:53 +02:00
|
|
|
beego.GlobalControllerRouter["oc-workflow/controllers:WorkflowController"] = append(beego.GlobalControllerRouter["oc-workflow/controllers:WorkflowController"],
|
2024-08-06 11:09:38 +02:00
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Search",
|
|
|
|
Router: `/search/:search`,
|
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-07-11 11:40:11 +02:00
|
|
|
}
|