mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-11-23 20:50:18 +01:00
several small fixes
This commit is contained in:
parent
065fdba2c6
commit
b3f3ff70f3
1 changed files with 2 additions and 1 deletions
|
@ -69,6 +69,7 @@ func main() {
|
||||||
r.PathPrefix("/images/").Handler(http.FileServer(http.Dir("./static/")))
|
r.PathPrefix("/images/").Handler(http.FileServer(http.Dir("./static/")))
|
||||||
r.PathPrefix("/fonts/").Handler(http.FileServer(http.Dir("./static/")))
|
r.PathPrefix("/fonts/").Handler(http.FileServer(http.Dir("./static/")))
|
||||||
r.PathPrefix("/ico/").Handler(http.FileServer(http.Dir("./static/")))
|
r.PathPrefix("/ico/").Handler(http.FileServer(http.Dir("./static/")))
|
||||||
|
r.PathPrefix("/favicon.ico").Handler(http.FileServer(http.Dir("./static/")))
|
||||||
r.PathPrefix("/robots.txt").Handler(http.FileServer(http.Dir("./static/")))
|
r.PathPrefix("/robots.txt").Handler(http.FileServer(http.Dir("./static/")))
|
||||||
|
|
||||||
r.HandleFunc("/({files:.*}).zip", zipHandler).Methods("GET")
|
r.HandleFunc("/({files:.*}).zip", zipHandler).Methods("GET")
|
||||||
|
@ -103,7 +104,7 @@ func main() {
|
||||||
r.HandleFunc("/{filename}", putHandler).Methods("PUT")
|
r.HandleFunc("/{filename}", putHandler).Methods("PUT")
|
||||||
r.HandleFunc("/health.html", healthHandler).Methods("GET")
|
r.HandleFunc("/health.html", healthHandler).Methods("GET")
|
||||||
r.HandleFunc("/", postHandler).Methods("POST")
|
r.HandleFunc("/", postHandler).Methods("POST")
|
||||||
r.HandleFunc("/{page}", viewHandler).Methods("GET")
|
// r.HandleFunc("/{page}", viewHandler).Methods("GET")
|
||||||
r.HandleFunc("/", viewHandler).Methods("GET")
|
r.HandleFunc("/", viewHandler).Methods("GET")
|
||||||
|
|
||||||
r.NotFoundHandler = http.HandlerFunc(notFoundHandler)
|
r.NotFoundHandler = http.HandlerFunc(notFoundHandler)
|
||||||
|
|
Loading…
Reference in a new issue