211 lines
8.0 KiB
Go
211 lines
8.0 KiB
Go
|
package routers
|
||
|
|
||
|
import (
|
||
|
"github.com/astaxie/beego"
|
||
|
"github.com/astaxie/beego/context/param"
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:AuthController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:AuthController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "GetAll",
|
||
|
Router: `/`,
|
||
|
AllowHTTPMethods: []string{"get"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:AuthController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:AuthController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "GetOne",
|
||
|
Router: `/:id`,
|
||
|
AllowHTTPMethods: []string{"get"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:AuthController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:AuthController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "Put",
|
||
|
Router: `/:id`,
|
||
|
AllowHTTPMethods: []string{"put"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:AuthController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:AuthController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "Delete",
|
||
|
Router: `/:id`,
|
||
|
AllowHTTPMethods: []string{"delete"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:AuthController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:AuthController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "Login",
|
||
|
Router: `/login`,
|
||
|
AllowHTTPMethods: []string{"post"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:CompanyDataController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:CompanyDataController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "Post",
|
||
|
Router: `/`,
|
||
|
AllowHTTPMethods: []string{"post"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:CompanyDataController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:CompanyDataController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "GetAll",
|
||
|
Router: `/`,
|
||
|
AllowHTTPMethods: []string{"get"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:CompanyDataController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:CompanyDataController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "GetOne",
|
||
|
Router: `/:id`,
|
||
|
AllowHTTPMethods: []string{"get"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:CompanyDataController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:CompanyDataController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "Put",
|
||
|
Router: `/:id`,
|
||
|
AllowHTTPMethods: []string{"put"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:CompanyDataController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:CompanyDataController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "Delete",
|
||
|
Router: `/:id`,
|
||
|
AllowHTTPMethods: []string{"delete"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:CompanyUserController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:CompanyUserController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "Post",
|
||
|
Router: `/`,
|
||
|
AllowHTTPMethods: []string{"post"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:CompanyUserController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:CompanyUserController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "GetAll",
|
||
|
Router: `/`,
|
||
|
AllowHTTPMethods: []string{"get"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:CompanyUserController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:CompanyUserController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "GetOne",
|
||
|
Router: `/:id`,
|
||
|
AllowHTTPMethods: []string{"get"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:CompanyUserController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:CompanyUserController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "Put",
|
||
|
Router: `/:id`,
|
||
|
AllowHTTPMethods: []string{"put"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:CompanyUserController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:CompanyUserController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "Delete",
|
||
|
Router: `/:id`,
|
||
|
AllowHTTPMethods: []string{"delete"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:ContactController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:ContactController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "Post",
|
||
|
Router: `/`,
|
||
|
AllowHTTPMethods: []string{"post"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:ContactController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:ContactController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "GetAll",
|
||
|
Router: `/`,
|
||
|
AllowHTTPMethods: []string{"get"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:ContactController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:ContactController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "GetOne",
|
||
|
Router: `/:id`,
|
||
|
AllowHTTPMethods: []string{"get"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:ContactController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:ContactController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "Put",
|
||
|
Router: `/:id`,
|
||
|
AllowHTTPMethods: []string{"put"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:ContactController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:ContactController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "Delete",
|
||
|
Router: `/:id`,
|
||
|
AllowHTTPMethods: []string{"delete"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:PostController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:PostController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "Post",
|
||
|
Router: `/`,
|
||
|
AllowHTTPMethods: []string{"post"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:PostController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:PostController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "GetAll",
|
||
|
Router: `/`,
|
||
|
AllowHTTPMethods: []string{"get"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:PostController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:PostController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "GetOne",
|
||
|
Router: `/:id`,
|
||
|
AllowHTTPMethods: []string{"get"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:PostController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:PostController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "Put",
|
||
|
Router: `/:id`,
|
||
|
AllowHTTPMethods: []string{"put"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
beego.GlobalControllerRouter["multitenantStack/controllers:PostController"] = append(beego.GlobalControllerRouter["multitenantStack/controllers:PostController"],
|
||
|
beego.ControllerComments{
|
||
|
Method: "Delete",
|
||
|
Router: `/:id`,
|
||
|
AllowHTTPMethods: []string{"delete"},
|
||
|
MethodParams: param.Make(),
|
||
|
Params: nil})
|
||
|
|
||
|
}
|