From d770a0c7329ee63e25416286448f30b7f8169f2a Mon Sep 17 00:00:00 2001 From: faris Aljohari <83524184+farisaljohari@users.noreply.github.com> Date: Mon, 17 Feb 2025 18:51:16 -0600 Subject: [PATCH] Remove robots.txt request handling middleware --- src/main.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/main.ts b/src/main.ts index 914d41b..6dbfc45 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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(