holy meow (#1357)
This commit is contained in:
@@ -88,6 +88,12 @@ function requireAdminBearer(req, res, next) {
|
||||
|
||||
app.use('/api', requireApiBearer);
|
||||
|
||||
// Rewrite /api/sre/* → /api/* so the gateway can forward channel-prefixed paths.
|
||||
app.use('/api/sre', (req, res, next) => {
|
||||
req.url = req.url.replace('/api/sre', '/api');
|
||||
next();
|
||||
});
|
||||
|
||||
// Readiness gate: heavy aggregation endpoints sit behind this so cold-start
|
||||
// requests don't pile up on the read connection while the DB is still opening
|
||||
// indexes and the vehicle-list cache is warming. Resolves when boot work
|
||||
|
||||
Reference in New Issue
Block a user