Main file refactoring, extract a Server object
This commit is contained in:
parent
b906e9361f
commit
a0b15a0efd
5 changed files with 416 additions and 353 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue