We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49832e8 commit e08eff7Copy full SHA for e08eff7
cmd/web/routes.go
@@ -22,10 +22,10 @@ func (app *App) Routes() http.Handler {
22
mux.Post("/user/login", alice.New(NoSurf).Then(http.HandlerFunc(app.VerifyUser)))
23
mux.Post("/user/logout", alice.New(app.RequireLogin, NoSurf).Then(http.HandlerFunc(app.LogoutUser)))
24
25
+ mux.Get("/version", http.HandlerFunc(app.VersionInfo))
26
+
27
fileServer := http.FileServer(http.Dir(app.staticDir))
28
mux.Get("/static/", alice.New(StripStatic, DisableIndex).Then(fileServer))
29
- mux.Get("/version", http.HandlerFunc(app.VersionInfo))
-
30
return alice.New(LogRequest, SecureHeaders).Then(mux)
31
}
0 commit comments