brestok's picture
Upload 29 files
c409a15 verified
raw
history blame contribute delete
318 Bytes
from fastapi.templating import Jinja2Templates
from fastapi import Request
from project.bot import bot_router
template = Jinja2Templates(directory='project/bot/templates')
@bot_router.get('/', name='login')
async def voice(request: Request):
return template.TemplateResponse("voice.html", {'request': request})