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-10-15 10:51:12 +02:00
|
|
|
beego.GlobalControllerRouter["oc-peer/controllers:PeerController"] = append(beego.GlobalControllerRouter["oc-peer/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-10-15 10:51:12 +02:00
|
|
|
beego.GlobalControllerRouter["oc-peer/controllers:PeerController"] = append(beego.GlobalControllerRouter["oc-peer/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-10-15 10:51:12 +02:00
|
|
|
beego.GlobalControllerRouter["oc-peer/controllers:PeerController"] = append(beego.GlobalControllerRouter["oc-peer/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-10-15 10:51:12 +02:00
|
|
|
beego.GlobalControllerRouter["oc-peer/controllers:PeerController"] = append(beego.GlobalControllerRouter["oc-peer/controllers:PeerController"],
|
2024-10-15 16:55:29 +02:00
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Blacklist",
|
|
|
|
Router: `/:id/blacklist`,
|
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-peer/controllers:PeerController"] = append(beego.GlobalControllerRouter["oc-peer/controllers:PeerController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "Partner",
|
|
|
|
Router: `/:id/partner`,
|
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-peer/controllers:PeerController"] = append(beego.GlobalControllerRouter["oc-peer/controllers:PeerController"],
|
|
|
|
beego.ControllerComments{
|
|
|
|
Method: "DeleteState",
|
|
|
|
Router: `/:id/undo_state`,
|
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
|
|
|
beego.GlobalControllerRouter["oc-peer/controllers:PeerController"] = append(beego.GlobalControllerRouter["oc-peer/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})
|
|
|
|
|
2024-10-15 10:51:12 +02:00
|
|
|
beego.GlobalControllerRouter["oc-peer/controllers:StatusController"] = append(beego.GlobalControllerRouter["oc-peer/controllers:StatusController"],
|
2024-08-21 16:25:24 +02:00
|
|
|
beego.ControllerComments{
|
2024-08-26 12:07:54 +02:00
|
|
|
Method: "Status",
|
2024-08-21 16:25:24 +02:00
|
|
|
Router: `/`,
|
|
|
|
AllowHTTPMethods: []string{"post"},
|
|
|
|
MethodParams: param.Make(),
|
|
|
|
Filters: nil,
|
|
|
|
Params: nil})
|
|
|
|
|
2024-10-15 10:51:12 +02:00
|
|
|
beego.GlobalControllerRouter["oc-peer/controllers:VersionController"] = append(beego.GlobalControllerRouter["oc-peer/controllers:VersionController"],
|
2024-08-21 16:25:24 +02:00
|
|
|
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
|
|
|
}
|