func main() { settings.Init() router := routers.InitRoutes() n := negroni.Classic() n.UseHandler(router) http.ListenAndServe(":5000", n) }
func (s *MiddlewaresTestSuite) SetUpTest(c *C) { authBackend := authentication.InitJWTAuthenticationBackend() assert.NotNil(t, authBackend) token, _ = authBackend.GenerateToken("1234") router := routers.InitRoutes() server = negroni.Classic() server.UseHandler(router) }