добавил хоум роут

This commit is contained in:
Данил 2024-09-14 21:06:09 +03:00
parent cbcb7991f5
commit 5d0f32792c

8
src/routes/index.py Normal file
View file

@ -0,0 +1,8 @@
from fastapi import APIRouter, Request
from fastapi.responses import FileResponse
router = APIRouter()
@router.get('/')
async def main():
return FileResponse('./src/web/html/index.html')