Documentation ¶
Overview ¶
Package urls containing list of struct Url[method, path, handler, name] for routing
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AdminPatterns = []*Url{ &Url{"Get", "/admin", admin.IndexPage, "admin", "Админ"}, }
View Source
var UrlPatterns = []*Url{ &Url{"Get", "/", functions.IndexPage, "index", ""}, &Url{"All", "/login", auth.LoginPage, "auth-login", ""}, &Url{"All", "/logout", auth.APILogout, "api-auth-logout", ""}, &Url{"POST", "/new_password", auth.APINewPassword, "api-auth-new-password", ""}, &Url{"POST", "/registration", auth.APIRegistration, "api-auth-registration", ""}, &Url{"Get", "/admin", admin.IndexPage, "admin", "Админ"}, }
Functions ¶
func AddAdminPatterns ¶
func AddAdminPatterns(ap []*Url)
func AddUrlPatterns ¶
func AddUrlPatterns(up []*Url)
Types ¶
Click to show internal directories.
Click to hide internal directories.