mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-11-23 12:40:19 +01:00
ISSUE-207 #2
This commit is contained in:
parent
ad6cf77017
commit
ee417b9db1
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue