From f45303dc2daa3e182dad854345d8ee9ff1451036 Mon Sep 17 00:00:00 2001 From: Redume Date: Wed, 25 Sep 2024 14:30:40 +0300 Subject: [PATCH] =?UTF-8?q?PEP8=20+=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=80=D0=BE=D1=83=D1=82=D0=B0=20rob?= =?UTF-8?q?ots.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.py b/main.py index ffc9063..1458bc5 100644 --- a/main.py +++ b/main.py @@ -19,6 +19,11 @@ async def app_ads(req, __): return FileResponse('./app-ads.txt') +@app.route('/robots.txt') +async def robots_txt(req, __): + return FileResponse('./robots.txt') + + @app.exception_handler(404) async def not_found(req, __): return FileResponse('./src/web/html/error/404.html')