oc-peer/routers/commentsRouter.go

65 lines
2.4 KiB
Go
Raw Normal View History

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() {
2024-08-21 16:25:24 +02:00
beego.GlobalControllerRouter["oc-peers/controllers:PeerController"] = append(beego.GlobalControllerRouter["oc-peers/controllers:PeerController"],
2024-07-11 11:40:11 +02:00
beego.ControllerComments{
Method: "GetAll",
Router: `/`,
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-08-21 16:25:24 +02:00
beego.GlobalControllerRouter["oc-peers/controllers:PeerController"] = append(beego.GlobalControllerRouter["oc-peers/controllers:PeerController"],
2024-07-24 10:25:08 +02:00
beego.ControllerComments{
2024-08-21 16:25:24 +02:00
Method: "Put",
Router: `/:id`,
AllowHTTPMethods: []string{"put"},
2024-07-24 10:25:08 +02:00
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-08-21 16:25:24 +02:00
beego.GlobalControllerRouter["oc-peers/controllers:PeerController"] = append(beego.GlobalControllerRouter["oc-peers/controllers:PeerController"],
2024-07-11 11:40:11 +02:00
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})
2024-08-21 16:25:24 +02:00
beego.GlobalControllerRouter["oc-peers/controllers:PeerController"] = append(beego.GlobalControllerRouter["oc-peers/controllers:PeerController"],
2024-08-06 11:09:38 +02:00
beego.ControllerComments{
Method: "Search",
2024-08-21 16:25:24 +02:00
Router: `/search/:search`,
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
beego.GlobalControllerRouter["oc-peers/controllers:StatusController"] = append(beego.GlobalControllerRouter["oc-peers/controllers:StatusController"],
beego.ControllerComments{
Method: "Get",
Router: `/`,
AllowHTTPMethods: []string{"post"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
beego.GlobalControllerRouter["oc-peers/controllers:VersionController"] = append(beego.GlobalControllerRouter["oc-peers/controllers:VersionController"],
beego.ControllerComments{
Method: "GetAll",
Router: `/`,
2024-08-06 11:09:38 +02:00
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-07-11 11:40:11 +02:00
}