From b05d6917ebeec5cf7671830390af56bc6de1cb50 Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Thu, 23 Jun 2016 11:02:59 +1000 Subject: [PATCH] Remove roothandler --- main.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/main.go b/main.go index f954385..e646a39 100644 --- a/main.go +++ b/main.go @@ -174,9 +174,6 @@ func saveHandler(w http.ResponseWriter, r *http.Request) { } -func rootHandler(w http.ResponseWriter, r *http.Request) { - io.WriteString(w, TEXT) -} func langHandler(w http.ResponseWriter, r *http.Request) { vars := mux.Vars(r) @@ -217,7 +214,6 @@ func pasteHandler(w http.ResponseWriter, r *http.Request) { func main() { router := mux.NewRouter().StrictSlash(true) - router.HandleFunc("/", rootHandler) router.HandleFunc("/p/{pasteId}", pasteHandler) router.HandleFunc("/p/{pasteId}/{lang}", langHandler) router.HandleFunc("/save", saveHandler)