ISSUE-207

This commit is contained in:
Andrea Spacca 2019-04-07 17:06:27 +02:00
parent c4dbd39527
commit ad6cf77017

View file

@ -317,13 +317,13 @@ func (s *Server) Run() {
staticHandler := http.FileServer(fs)
r.PathPrefix("/images/").Handler(staticHandler)
r.PathPrefix("/styles/").Handler(staticHandler)
r.PathPrefix("/scripts/").Handler(staticHandler)
r.PathPrefix("/fonts/").Handler(staticHandler)
r.PathPrefix("/ico/").Handler(staticHandler)
r.PathPrefix("/favicon.ico").Handler(staticHandler)
r.PathPrefix("/robots.txt").Handler(staticHandler)
r.PathPrefix("/images/").Handler(staticHandler).Methods("GET")
r.PathPrefix("/styles/").Handler(staticHandler).Methods("GET")
r.PathPrefix("/scripts/").Handler(staticHandler).Methods("GET")
r.PathPrefix("/fonts/").Handler(staticHandler).Methods("GET")
r.PathPrefix("/ico/").Handler(staticHandler).Methods("GET")
r.PathPrefix("/favicon.ico").Handler(staticHandler).Methods("GET")
r.PathPrefix("/robots.txt").Handler(staticHandler).Methods("GET")
r.HandleFunc("/health.html", healthHandler).Methods("GET")
r.HandleFunc("/", s.viewHandler).Methods("GET")