Skip to content

Commit e08eff7

Browse files
committed
small fix in routes
1 parent 49832e8 commit e08eff7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/web/routes.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ func (app *App) Routes() http.Handler {
2222
mux.Post("/user/login", alice.New(NoSurf).Then(http.HandlerFunc(app.VerifyUser)))
2323
mux.Post("/user/logout", alice.New(app.RequireLogin, NoSurf).Then(http.HandlerFunc(app.LogoutUser)))
2424

25+
mux.Get("/version", http.HandlerFunc(app.VersionInfo))
26+
2527
fileServer := http.FileServer(http.Dir(app.staticDir))
2628
mux.Get("/static/", alice.New(StripStatic, DisableIndex).Then(fileServer))
2729

28-
mux.Get("/version", http.HandlerFunc(app.VersionInfo))
29-
3030
return alice.New(LogRequest, SecureHeaders).Then(mux)
3131
}

0 commit comments

Comments
 (0)