Main file refactoring, extract a Server object

This commit is contained in:
emile 2016-01-13 22:45:49 +01:00
parent b906e9361f
commit a0b15a0efd
No known key found for this signature in database
GPG key ID: D808B4C167352E59
5 changed files with 416 additions and 353 deletions

View file

@ -35,7 +35,7 @@ func notFoundHandler(w http.ResponseWriter, r *http.Request) {
}
// LoadDefaultConfig returns a default gorrilla.mux router from the specified configuration.
func LoadDefaultConfig(globalConfiguration *GlobalConfiguration) *mux.Router {
func LoadDefaultConfig(globalConfiguration GlobalConfiguration) *mux.Router {
router := mux.NewRouter()
router.NotFoundHandler = http.HandlerFunc(notFoundHandler)
return router