add comment for nosurf
This commit is contained in:
parent
5d670c1dc5
commit
262b48161d
@ -14,7 +14,7 @@ func routes(app *config.AppConfig) http.Handler {
|
||||
|
||||
mux.Use(middleware.Recoverer)
|
||||
mux.Use(WriteToConsole)
|
||||
mux.Use(NoSurf)
|
||||
mux.Use(NoSurf) // XXX: Maybe this middleware makes that I don't have to r.ParseForm before Get the elements.
|
||||
mux.Use(SessionLoad)
|
||||
|
||||
mux.Get("/", handlers.Repo.Home)
|
||||
|
Loading…
Reference in New Issue
Block a user