Server-side form validation 1
This commit is contained in:
		@ -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))
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user