Rename setUpRouter to initRouter

This commit is contained in:
Las Zenow 2014-02-09 18:38:43 +01:00
parent aebea27517
commit 9af72ea1b4

View file

@ -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)