add comment for nosurf

This commit is contained in:
vinchent 2024-07-13 18:19:51 +02:00
parent 5d670c1dc5
commit 262b48161d

View File

@ -14,7 +14,7 @@ func routes(app *config.AppConfig) http.Handler {
mux.Use(middleware.Recoverer) mux.Use(middleware.Recoverer)
mux.Use(WriteToConsole) 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.Use(SessionLoad)
mux.Get("/", handlers.Repo.Home) mux.Get("/", handlers.Repo.Home)