From 51995a8fd5e21cca59a1849672052bad55517de5 Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Mon, 27 Jun 2016 07:47:42 +1000 Subject: [PATCH] Call setup function in main --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 6de52b8..06b3871 100644 --- a/main.go +++ b/main.go @@ -354,6 +354,7 @@ func rawHandler(w http.ResponseWriter, r *http.Request) { } func main() { + setup() router := mux.NewRouter() router.HandleFunc("/p/{pasteId}", pasteHandler) router.HandleFunc("/raw/{pasteId}", rawHandler)