mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-12-24 11:20:18 +01:00
ISSUE-207 #3
This commit is contained in:
parent
ee417b9db1
commit
121a8d824e
1 changed files with 3 additions and 3 deletions
|
@ -325,9 +325,9 @@ func (s *Server) Run() {
|
||||||
r.PathPrefix("/favicon.ico").Handler(staticHandler).Methods("GET")
|
r.PathPrefix("/favicon.ico").Handler(staticHandler).Methods("GET")
|
||||||
r.PathPrefix("/robots.txt").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.PathPrefix("/favicon.ico").Handler(s.BasicAuthHandler(http.HandlerFunc(s.putHandler))).Methods("PUT")
|
||||||
r.HandleFunc("/robots.txt", s.BasicAuthHandler(http.HandlerFunc(s.putHandler))).Methods("PUT")
|
r.PathPrefix("/robots.txt").Handler(s.BasicAuthHandler(http.HandlerFunc(s.putHandler))).Methods("PUT")
|
||||||
r.HandleFunc("/health.html", s.BasicAuthHandler(http.HandlerFunc(s.putHandler))).Methods("PUT")
|
r.PathPrefix("/health.html").Handler(s.BasicAuthHandler(http.HandlerFunc(s.putHandler))).Methods("PUT")
|
||||||
|
|
||||||
r.HandleFunc("/health.html", healthHandler).Methods("GET")
|
r.HandleFunc("/health.html", healthHandler).Methods("GET")
|
||||||
r.HandleFunc("/", s.viewHandler).Methods("GET")
|
r.HandleFunc("/", s.viewHandler).Methods("GET")
|
||||||
|
|
Loading…
Reference in a new issue