func (c *RegistrationsController) Init(r *mux.Router) {
	r.HandleFunc("/api/registrations", c.Create).Methods("POST")
}
Exemplo n.º 2
0
func (c *ImagesController) Init(r *mux.Router) {
	r.HandleFunc("/{args:.*?}http{path:.*}", c.Get)
}
func (c *SsoSessionsController) Init(r *mux.Router) {
	r.HandleFunc("/sso/login", c.Create).Methods("POST")
}
Exemplo n.º 4
0
func (c *HomeController) Init(r *mux.Router) {
	r.HandleFunc("/", c.Index)
	r.HandleFunc("/dashboard", c.Index)
	r.HandleFunc("/docs", c.Index)
	r.HandleFunc("/authdocs", c.Index)
	r.HandleFunc("/signup", c.Index)
	r.HandleFunc("/signin", c.Index)
	r.HandleFunc("/signout", c.Index)
	r.HandleFunc("/404", c.Index)
}
Exemplo n.º 5
0
func (c *AccountsController) Init(r *mux.Router) {
	r.HandleFunc("/api/account", c.Show).Methods("GET")
	r.HandleFunc("/api/account", c.Update).Methods("PATCH")
}