From 9af72ea1b47e6df72be85e995e05b42bc9771f70 Mon Sep 17 00:00:00 2001 From: Las Zenow Date: Sun, 9 Feb 2014 18:38:43 +0100 Subject: [PATCH] Rename setUpRouter to initRouter --- trantor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trantor.go b/trantor.go index 4b7f8fe..c94e2ca 100644 --- a/trantor.go +++ b/trantor.go @@ -151,11 +151,11 @@ func main() { InitStats(db) InitUpload(db) - setUpRouter(db) + initRouter(db) panic(http.ListenAndServe(":"+PORT, nil)) } -func setUpRouter(db *DB) { +func initRouter(db *DB) { r := mux.NewRouter() var notFoundHandler http.HandlerFunc notFoundHandler = GatherStats(notFound, db)