Skip to content

Commit

Permalink
refactor: move /configuration below the artificial dev slowdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed Mar 14, 2024
1 parent 6b1a413 commit 0ac4706
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/src/api/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ function addApiRoutes(app: Application): void {
res.sendStatus(404);
});

// Cannot be added to the route map because it needs to be added before the maintenance handler
app.use("/configuration", configuration);

if (isDevEnvironment()) {
//disable csp to allow assets to load from unsecured http
app.use((req, res, next) => {
Expand All @@ -67,6 +64,9 @@ function addApiRoutes(app: Application): void {
// });
}

// Cannot be added to the route map because it needs to be added before the maintenance handler
app.use("/configuration", configuration);

addSwaggerMiddlewares(app);

app.use(
Expand Down

0 comments on commit 0ac4706

Please sign in to comment.