Add Groningen city as area served. Serve promo folder with flyers
This commit is contained in:
4
main.go
4
main.go
@ -404,6 +404,10 @@ func (s *Server) setupRoutes() {
|
||||
fs := http.FileServer(http.Dir("static/"))
|
||||
http.Handle("/static/", http.StripPrefix("/static/", cacheControlMiddleware(fs)))
|
||||
|
||||
// Promo files under /promo served from static/promo/
|
||||
promoFS := http.FileServer(http.Dir("static/promo/"))
|
||||
http.Handle("/promo/", http.StripPrefix("/promo/", cacheControlMiddleware(promoFS)))
|
||||
|
||||
// Page routes
|
||||
http.HandleFunc("/", s.homeHandler)
|
||||
http.HandleFunc("/contact", s.contactHandler)
|
||||
|
||||
Reference in New Issue
Block a user