mirror of
https://github.com/Starlio-app/Starlio-web.git
synced 2024-11-22 00:36:20 +03:00
добавил хоум роут
This commit is contained in:
parent
cbcb7991f5
commit
5d0f32792c
1 changed files with 8 additions and 0 deletions
8
src/routes/index.py
Normal file
8
src/routes/index.py
Normal 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')
|
Loading…
Add table
Reference in a new issue