Make netlist configurable
This commit is contained in:
parent
63405b6dc2
commit
55c7e00ad6
3 changed files with 29 additions and 19 deletions
|
|
@ -51,7 +51,19 @@ func main() {
|
|||
etag := middleware.NewETag("static", cacheExpiration)
|
||||
|
||||
router.Handle("/", middleware.LoggingMiddleware(http.RedirectHandler("/notes/", http.StatusFound)))
|
||||
router.Handle("/notes/", sessions.AsMiddleware(middleware.LoggingMiddleware(http.StripPrefix("/notes", notesRouter))))
|
||||
router.Handle(
|
||||
"/notes/",
|
||||
sessions.AsMiddleware(
|
||||
middleware.LoggingMiddleware(
|
||||
middleware.RejectAnonMiddleware(
|
||||
"/auth/login/",
|
||||
http.StripPrefix(
|
||||
"/notes", notesRouter,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
router.Handle("/auth/", sessions.AsMiddleware(middleware.LoggingMiddleware(http.StripPrefix("/auth", sessionRouter))))
|
||||
router.Handle(
|
||||
"/static/",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue