mirror of
https://github.com/dnote/dnote
synced 2026-03-16 07:25:49 +01:00
wip
This commit is contained in:
parent
a919fc0509
commit
04ed337710
1 changed files with 2 additions and 1 deletions
|
|
@ -29,8 +29,9 @@ func registerRoutes(router *mux.Router, mw middleware, app *app.App, routes []Ro
|
|||
// NewWebRoutes returns a new web routes
|
||||
func NewWebRoutes(app *app.App, c *controllers.Controllers) []Route {
|
||||
return []Route{
|
||||
{"GET", "/", Auth(app, http.HandlerFunc(c.Users.New), nil), true},
|
||||
{"GET", "/", Auth(app, http.HandlerFunc(c.Users.New), &AuthParams{RedirectGuestsToLogin: true}), true},
|
||||
{"GET", "/new", http.HandlerFunc(c.Users.New), true},
|
||||
{"GET", "/login", http.HandlerFunc(c.Users.New), true},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue