sqldb-ws/routers/commentsRouter.go

191 lines
8.0 KiB
Go
Raw Normal View History

2023-08-23 21:33:00 +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-01-04 15:14:59 +01:00
beego.GlobalControllerRouter["sqldb-ws/controllers:HelperController"] = append(beego.GlobalControllerRouter["sqldb-ws/controllers:HelperController"],
beego.ControllerComments{
Method: "CreateTable",
Router: `/create`,
AllowHTTPMethods: []string{"post"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
beego.GlobalControllerRouter["sqldb-ws/controllers:HelperController"] = append(beego.GlobalControllerRouter["sqldb-ws/controllers:HelperController"],
beego.ControllerComments{
Method: "ParseHeader",
Router: `/header`,
AllowHTTPMethods: []string{"post"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
beego.GlobalControllerRouter["sqldb-ws/controllers:HelperController"] = append(beego.GlobalControllerRouter["sqldb-ws/controllers:HelperController"],
beego.ControllerComments{
Method: "Import",
Router: `/import/:table`,
AllowHTTPMethods: []string{"post"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2023-08-23 21:33:00 +02:00
beego.GlobalControllerRouter["sqldb-ws/controllers:LoginController"] = append(beego.GlobalControllerRouter["sqldb-ws/controllers:LoginController"],
beego.ControllerComments{
Method: "AddUser",
Router: `/adduser`,
AllowHTTPMethods: []string{"post"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
beego.GlobalControllerRouter["sqldb-ws/controllers:LoginController"] = append(beego.GlobalControllerRouter["sqldb-ws/controllers:LoginController"],
beego.ControllerComments{
Method: "Login",
Router: `/login`,
AllowHTTPMethods: []string{"post"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
beego.GlobalControllerRouter["sqldb-ws/controllers:LoginController"] = append(beego.GlobalControllerRouter["sqldb-ws/controllers:LoginController"],
beego.ControllerComments{
Method: "Logout",
Router: `/logout`,
AllowHTTPMethods: []string{"post"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
beego.GlobalControllerRouter["sqldb-ws/controllers:SchemaController"] = append(beego.GlobalControllerRouter["sqldb-ws/controllers:SchemaController"],
beego.ControllerComments{
2023-08-23 21:38:49 +02:00
Method: "GetTablesList",
2023-08-23 21:33:00 +02:00
Router: `/`,
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
beego.GlobalControllerRouter["sqldb-ws/controllers:SchemaController"] = append(beego.GlobalControllerRouter["sqldb-ws/controllers:SchemaController"],
beego.ControllerComments{
Method: "GetSchema",
Router: `/:table`,
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
beego.GlobalControllerRouter["sqldb-ws/controllers:TableController"] = append(beego.GlobalControllerRouter["sqldb-ws/controllers:TableController"],
beego.ControllerComments{
Method: "Put",
Router: `/:table`,
AllowHTTPMethods: []string{"put"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
beego.GlobalControllerRouter["sqldb-ws/controllers:TableController"] = append(beego.GlobalControllerRouter["sqldb-ws/controllers:TableController"],
beego.ControllerComments{
Method: "Delete",
Router: `/:table`,
AllowHTTPMethods: []string{"delete"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
beego.GlobalControllerRouter["sqldb-ws/controllers:TableController"] = append(beego.GlobalControllerRouter["sqldb-ws/controllers:TableController"],
beego.ControllerComments{
Method: "GetAllTable",
Router: `/:table`,
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
beego.GlobalControllerRouter["sqldb-ws/controllers:TableController"] = append(beego.GlobalControllerRouter["sqldb-ws/controllers:TableController"],
beego.ControllerComments{
Method: "TablePost",
Router: `/:table`,
AllowHTTPMethods: []string{"post"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
beego.GlobalControllerRouter["sqldb-ws/controllers:TableController"] = append(beego.GlobalControllerRouter["sqldb-ws/controllers:TableController"],
beego.ControllerComments{
Method: "GetAllTableColumn",
Router: `/:table/:columns`,
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
beego.GlobalControllerRouter["sqldb-ws/controllers:TableController"] = append(beego.GlobalControllerRouter["sqldb-ws/controllers:TableController"],
beego.ControllerComments{
Method: "GetAllTableColumnRestriction",
Router: `/:table/:columns/:restriction`,
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
beego.GlobalControllerRouter["sqldb-ws/controllers:TableController"] = append(beego.GlobalControllerRouter["sqldb-ws/controllers:TableController"],
beego.ControllerComments{
Method: "GetAllTableColumnRestrictionSortkeys",
Router: `/:table/:columns/:restriction/:sortkeys`,
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
beego.GlobalControllerRouter["sqldb-ws/controllers:TableController"] = append(beego.GlobalControllerRouter["sqldb-ws/controllers:TableController"],
beego.ControllerComments{
Method: "GetAllTableColumnRestrictionSortkeysDir",
Router: `/:table/:columns/:restriction/:sortkeys/:dir`,
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
beego.GlobalControllerRouter["sqldb-ws/controllers:UiController"] = append(beego.GlobalControllerRouter["sqldb-ws/controllers:UiController"],
beego.ControllerComments{
Method: "GetEmptyForm",
2024-01-04 15:14:59 +01:00
Router: `/form/:fid`,
2023-08-23 21:33:00 +02:00
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
beego.GlobalControllerRouter["sqldb-ws/controllers:UiController"] = append(beego.GlobalControllerRouter["sqldb-ws/controllers:UiController"],
beego.ControllerComments{
Method: "GetEditForm",
2024-01-04 15:14:59 +01:00
Router: `/form/:fid/:uid`,
2023-08-23 21:33:00 +02:00
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
beego.GlobalControllerRouter["sqldb-ws/controllers:UiController"] = append(beego.GlobalControllerRouter["sqldb-ws/controllers:UiController"],
beego.ControllerComments{
Method: "PostAccessForm",
2024-01-04 15:14:59 +01:00
Router: `/form/:fid/:uid`,
2023-08-23 21:33:00 +02:00
AllowHTTPMethods: []string{"post"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2024-01-04 15:14:59 +01:00
beego.GlobalControllerRouter["sqldb-ws/controllers:UiController"] = append(beego.GlobalControllerRouter["sqldb-ws/controllers:UiController"],
beego.ControllerComments{
Method: "GetListView",
Router: `/tableview/:tvid`,
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})
2023-08-23 21:33:00 +02:00
}