mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-11-23 12:40:19 +01:00
ISSUE-207
This commit is contained in:
parent
c4dbd39527
commit
ad6cf77017
1 changed files with 7 additions and 7 deletions
|
@ -317,13 +317,13 @@ func (s *Server) Run() {
|
|||
|
||||
staticHandler := http.FileServer(fs)
|
||||
|
||||
r.PathPrefix("/images/").Handler(staticHandler)
|
||||
r.PathPrefix("/styles/").Handler(staticHandler)
|
||||
r.PathPrefix("/scripts/").Handler(staticHandler)
|
||||
r.PathPrefix("/fonts/").Handler(staticHandler)
|
||||
r.PathPrefix("/ico/").Handler(staticHandler)
|
||||
r.PathPrefix("/favicon.ico").Handler(staticHandler)
|
||||
r.PathPrefix("/robots.txt").Handler(staticHandler)
|
||||
r.PathPrefix("/images/").Handler(staticHandler).Methods("GET")
|
||||
r.PathPrefix("/styles/").Handler(staticHandler).Methods("GET")
|
||||
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("/health.html", healthHandler).Methods("GET")
|
||||
r.HandleFunc("/", s.viewHandler).Methods("GET")
|
||||
|
|
Loading…
Reference in a new issue