Andrea Spacca преди 5 години
родител
ревизия
18f6d76bee
променени са 1 файла, в които са добавени 5 реда и са изтрити 5 реда
  1. +5
    -5
      server/server.go

+ 5
- 5
server/server.go Целия файл

@@ -322,12 +322,12 @@ func (s *Server) Run() {
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("/favicon.ico", staticHandler.ServeHTTP).Methods("GET")
r.HandleFunc("/robots.txt", staticHandler.ServeHTTP).Methods("GET")

r.PathPrefix("/favicon.ico").Handler(s.BasicAuthHandler(http.HandlerFunc(s.putHandler))).Methods("PUT")
r.PathPrefix("/robots.txt").Handler(s.BasicAuthHandler(http.HandlerFunc(s.putHandler))).Methods("PUT")
r.PathPrefix("/health.html").Handler(s.BasicAuthHandler(http.HandlerFunc(s.putHandler))).Methods("PUT")
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")


Зареждане…
Отказ
Запис