This commit is contained in:
Andrea Spacca 2019-04-07 17:12:11 +02:00
parent ad6cf77017
commit ee417b9db1

View file

@ -325,6 +325,10 @@ func (s *Server) Run() {
r.PathPrefix("/favicon.ico").Handler(staticHandler).Methods("GET")
r.PathPrefix("/robots.txt").Handler(staticHandler).Methods("GET")
r.HandleFunc("/favicon.ico", s.BasicAuthHandler(http.HandlerFunc(s.putHandler))).Methods("PUT")
r.HandleFunc("/robots.txt", s.BasicAuthHandler(http.HandlerFunc(s.putHandler))).Methods("PUT")
r.HandleFunc("/health.html", s.BasicAuthHandler(http.HandlerFunc(s.putHandler))).Methods("PUT")
r.HandleFunc("/health.html", healthHandler).Methods("GET")
r.HandleFunc("/", s.viewHandler).Methods("GET")