Sending AJAX post and generalizing the custom function
This commit is contained in:
@ -24,7 +24,7 @@ func routes(app *config.AppConfig) http.Handler {
|
||||
mux.Get("/majors-suite", handlers.Repo.Majors)
|
||||
mux.Get("/availability", handlers.Repo.Availability)
|
||||
mux.Post("/availability", handlers.Repo.PostAvailability)
|
||||
mux.Get("/availability-json", handlers.Repo.AvailabilityJSON)
|
||||
mux.Post("/availability-json", handlers.Repo.AvailabilityJSON)
|
||||
mux.Get("/make-reservation", handlers.Repo.MakeReservation)
|
||||
|
||||
fileServer := http.FileServer(http.Dir("./static/"))
|
||||
|
Reference in New Issue
Block a user