mirror of
https://github.com/Starlio-app/Starlio-web.git
synced 2024-11-05 17:03:58 +03:00
PEP8 + добавления роута robots.txt
This commit is contained in:
parent
0ee52a2e70
commit
f45303dc2d
1 changed files with 5 additions and 0 deletions
5
main.py
5
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')
|
||||
|
|
Loading…
Reference in a new issue