mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-10 07:07:21 +00:00
Remove robots.txt request handling middleware
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user