2024-08-13 11:17:09 +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-datacenter/controllers:BookingController"] = append(beego.GlobalControllerRouter["oc-datacenter/controllers:BookingController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "GetAll",
|
|
|
|
Router: `/`,
|
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-08-21 12:04:12 +02:00
|
|
|
beego.GlobalControllerRouter["oc-datacenter/controllers:BookingController"] = append(beego.GlobalControllerRouter["oc-datacenter/controllers:BookingController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Post",
|
|
|
|
Router: `/`,
|
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-08-13 11:17:09 +02:00
|
|
|
beego.GlobalControllerRouter["oc-datacenter/controllers:BookingController"] = append(beego.GlobalControllerRouter["oc-datacenter/controllers:BookingController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Get",
|
|
|
|
Router: `/:id`,
|
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-datacenter/controllers:BookingController"] = append(beego.GlobalControllerRouter["oc-datacenter/controllers:BookingController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Check",
|
2024-10-15 09:58:32 +02:00
|
|
|
Router: `/check/:id/:start_date/:end_date`,
|
2024-08-13 11:17:09 +02:00
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-datacenter/controllers:BookingController"] = append(beego.GlobalControllerRouter["oc-datacenter/controllers:BookingController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Search",
|
2024-11-13 08:10:20 +01:00
|
|
|
Router: `/search/:start_date/:end_date`,
|
2024-08-13 11:17:09 +02:00
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-datacenter/controllers:VersionController"] = append(beego.GlobalControllerRouter["oc-datacenter/controllers:VersionController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "GetAll",
|
|
|
|
Router: `/`,
|
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-08-21 12:04:12 +02:00
|
|
|
beego.GlobalControllerRouter["oc-datacenter/controllers:VersionController"] = append(beego.GlobalControllerRouter["oc-datacenter/controllers:VersionController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Status",
|
|
|
|
Router: `/status`,
|
|
|
|
AllowHTTPMethods: []string{"get"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-08-13 11:17:09 +02:00
|
|
|
}
|