JaveaAI / project /bot /views.py
brestok's picture
Upload 40 files
0632cd1 verified
raw
history blame contribute delete
325 Bytes
from fastapi.templating import Jinja2Templates
from fastapi.requests import Request
from project.bot import bot_router
template = Jinja2Templates(directory='project/bot/templates')
@bot_router.get('/', name='main')
async def main(request: Request):
return template.TemplateResponse("home.html", {'request': request})