Connecting the rooms page to make reservation page

This commit is contained in:
2024-07-11 23:01:10 +02:00
parent fed901ce25
commit 9775b67a2d
3 changed files with 92 additions and 2 deletions

View File

@ -29,6 +29,7 @@ func routes(app *config.AppConfig) http.Handler {
mux.Post("/make-reservation", handlers.Repo.PostMakeReservation)
mux.Get("/reservation-summary", handlers.Repo.ReservationSummary)
mux.Get("/choose-room/{id}", handlers.Repo.ChooseRoom)
mux.Get("/book-room", handlers.Repo.BookRoom)
fileServer := http.FileServer(http.Dir("./static/"))
mux.Handle("/static/*", http.StripPrefix("/static", fileServer))