mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2020-11-18 19:53:40 -08:00
ISSUE-207 #2
This commit is contained in:
parent
ad6cf77017
commit
ee417b9db1
@ -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")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user