From 262b48161ddc59569626752df2fba748b75c95fe Mon Sep 17 00:00:00 2001 From: vinchent Date: Sat, 13 Jul 2024 18:19:51 +0200 Subject: [PATCH] add comment for nosurf --- cmd/web/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/web/routes.go b/cmd/web/routes.go index 44f7249..9730369 100644 --- a/cmd/web/routes.go +++ b/cmd/web/routes.go @@ -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)