misc fixes and improvements, starts adding route tests

This commit is contained in:
Matteo Pagliazzi
2015-11-18 12:36:13 +01:00
parent b5adf9f19b
commit 65a8d2e255
7 changed files with 24 additions and 35 deletions

View File

@@ -89,7 +89,7 @@ app.use(domainMiddleware(server, mongoose));
// Matches all request except the ones going to /api/v3/**
app.all(/^(?!\/api\/v3).+/i, oldApp);
// Matches all requests going to /api/v3
app.all('/api/v3', newApp);
app.all('/api/*', newApp);
// Mount middlewares for the new app
attachMiddlewares(newApp);