brestok's picture
Upload 27 files
98dceee verified
raw
history blame
328 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='voice')
async def voice(request: Request):
return template.TemplateResponse("voice.html", {'request': request})