mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
misc fixes and improvements, starts adding route tests
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user