From 5d0f32792c4ae6faeaafd3670b0f691cbc273df7 Mon Sep 17 00:00:00 2001 From: Redume Date: Sat, 14 Sep 2024 21:06:09 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=85=D0=BE=D1=83=D0=BC=20=D1=80=D0=BE=D1=83=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/index.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/routes/index.py diff --git a/src/routes/index.py b/src/routes/index.py new file mode 100644 index 0000000..809d2ff --- /dev/null +++ b/src/routes/index.py @@ -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') \ No newline at end of file