From b3f3ff70f34d666d391467efd6534f4ee38c7678 Mon Sep 17 00:00:00 2001 From: Remco Date: Thu, 16 Oct 2014 22:10:17 +0200 Subject: [PATCH] several small fixes --- transfersh-server/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/transfersh-server/main.go b/transfersh-server/main.go index 9e95265..0ea2803 100644 --- a/transfersh-server/main.go +++ b/transfersh-server/main.go @@ -69,6 +69,7 @@ func main() { r.PathPrefix("/images/").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("/favicon.ico").Handler(http.FileServer(http.Dir("./static/"))) r.PathPrefix("/robots.txt").Handler(http.FileServer(http.Dir("./static/"))) r.HandleFunc("/({files:.*}).zip", zipHandler).Methods("GET") @@ -103,7 +104,7 @@ func main() { r.HandleFunc("/{filename}", putHandler).Methods("PUT") r.HandleFunc("/health.html", healthHandler).Methods("GET") r.HandleFunc("/", postHandler).Methods("POST") - r.HandleFunc("/{page}", viewHandler).Methods("GET") + // r.HandleFunc("/{page}", viewHandler).Methods("GET") r.HandleFunc("/", viewHandler).Methods("GET") r.NotFoundHandler = http.HandlerFunc(notFoundHandler)