We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aaaed2 commit 9d0ae70Copy full SHA for 9d0ae70
apps/pdf-analyzer-service/src/app.ts
@@ -10,8 +10,14 @@ const app = express();
10
app.use(express.json());
11
12
const openapiDoc = loadOpenApi();
13
+// Normalize '/docs' to '/docs/' to prevent absolute redirect that would drop ingress prefix
14
+app.use((req, _res, next) => {
15
+ if (req.path === '/docs') {
16
+ req.url = '/docs/';
17
+ }
18
+ next();
19
+});
20
app.use('/docs', swaggerUi.serve, swaggerUi.setup(openapiDoc));
-app.get('/', (_req, res) => res.redirect('docs'));
21
22
registerRoutes(app);
23
0 commit comments