Remove robots.txt request handling middleware

This commit is contained in:
faris Aljohari
2025-02-17 18:51:16 -06:00
parent 030e6ae902
commit d770a0c732

View File

@ -31,14 +31,6 @@ async function bootstrap() {
}),
);
// Middleware to ignore requests for robots*.txt files
app.use((req, res, next) => {
if (req.path.match(/^\/robots\d*\.txt$/)) {
return res.status(404).send('Not Found');
}
next();
});
setupSwaggerAuthentication(app);
app.useGlobalPipes(