Rename setUpRouter to initRouter
This commit is contained in:
parent
aebea27517
commit
9af72ea1b4
1 changed files with 2 additions and 2 deletions
|
@ -151,11 +151,11 @@ func main() {
|
||||||
InitStats(db)
|
InitStats(db)
|
||||||
InitUpload(db)
|
InitUpload(db)
|
||||||
|
|
||||||
setUpRouter(db)
|
initRouter(db)
|
||||||
panic(http.ListenAndServe(":"+PORT, nil))
|
panic(http.ListenAndServe(":"+PORT, nil))
|
||||||
}
|
}
|
||||||
|
|
||||||
func setUpRouter(db *DB) {
|
func initRouter(db *DB) {
|
||||||
r := mux.NewRouter()
|
r := mux.NewRouter()
|
||||||
var notFoundHandler http.HandlerFunc
|
var notFoundHandler http.HandlerFunc
|
||||||
notFoundHandler = GatherStats(notFound, db)
|
notFoundHandler = GatherStats(notFound, db)
|
||||||
|
|
Reference in a new issue