Creating handlers for forms & adding CSRF Protection

This commit is contained in:
Muyao CHEN
2024-06-30 10:31:15 +02:00
parent 592d5241d1
commit 76bee566cd
6 changed files with 28 additions and 15 deletions

View File

@ -23,6 +23,7 @@ func routes(app *config.AppConfig) http.Handler {
mux.Get("/generals-quarters", handlers.Repo.Generals)
mux.Get("/majors-suite", handlers.Repo.Majors)
mux.Get("/reservation", handlers.Repo.Reservation)
mux.Post("/reservation", handlers.Repo.PostReservation)
mux.Get("/make-reservation", handlers.Repo.MakeReservation)
fileServer := http.FileServer(http.Dir("./static/"))