Spaces:
Running
Running
File size: 364 Bytes
04ffec9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
from starlette.responses import RedirectResponse
from starlette.responses import HTMLResponse
from speakers.common.registry import registry
async def page_index():
html_file = open(f"{registry.get_path('server_library_root')}/static/index.html", 'r').read()
return HTMLResponse(html_file)
async def document():
return RedirectResponse(url="/docs")
|