Server-side form validation 1

This commit is contained in:
Muyao CHEN
2024-06-30 17:08:47 +02:00
parent 7294254e13
commit 8394832428
6 changed files with 59 additions and 2 deletions

View File

@ -26,6 +26,7 @@ func routes(app *config.AppConfig) http.Handler {
mux.Post("/availability", handlers.Repo.PostAvailability)
mux.Post("/availability-json", handlers.Repo.AvailabilityJSON)
mux.Get("/make-reservation", handlers.Repo.MakeReservation)
mux.Post("/make-reservation", handlers.Repo.PostMakeReservation)
fileServer := http.FileServer(http.Dir("./static/"))
mux.Handle("/static/*", http.StripPrefix("/static", fileServer))