Creating handler to log in
This commit is contained in:
		@ -31,6 +31,7 @@ func routes(app *config.AppConfig) http.Handler {
 | 
			
		||||
	mux.Get("/choose-room/{id}", handlers.Repo.ChooseRoom)
 | 
			
		||||
	mux.Get("/book-room", handlers.Repo.BookRoom)
 | 
			
		||||
	mux.Get("/user/login", handlers.Repo.ShowLogin)
 | 
			
		||||
	mux.Post("/user/login", handlers.Repo.PostShowLogin)
 | 
			
		||||
 | 
			
		||||
	fileServer := http.FileServer(http.Dir("./static/"))
 | 
			
		||||
	mux.Handle("/static/*", http.StripPrefix("/static", fileServer))
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user