Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AppRouter = register.HTTPRouter{ Route: []register.Route{ { Name: "home", Path: "/", Action: "HomeController@Main", Method: "GET", Description: "Main route", Middleware: []register.Middleware{ middleware.NewRateLimiterMiddleware(), }, }, { Name: "users", Path: "/users", Action: "UserController@Insert", Method: "POST", Description: "Insert new user", Middleware: []register.Middleware{}, }, }, Groups: []register.Group{ { Name: "admin", Prefix: "/admin", Routes: []register.Route{ { Name: "test", Path: "/test", Action: "UserController@Profile", Method: "GET", Description: "Test user authentication", Middleware: []register.Middleware{ middleware.NewRateLimiterMiddleware(), middleware.NewRefreshTokenMiddleware(), }, }, }, Middleware: []register.Middleware{ middleware.NewAuthMiddleware(), }, }, }, }
View Source
var AuthRouter = register.HTTPRouter{ Route: []register.Route{ { Name: "login", Path: "/login", Action: "AuthController@JWTAuthentication", Method: "POST", Validation: &validation.Credentials{}, Description: "Perform login", Middleware: []register.Middleware{}, }, }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.