Initial commit
This commit is contained in:
18
folkugat_web/api/index.py
Normal file
18
folkugat_web/api/index.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from fastapi import Request
|
||||
from folkugat_web.api import router
|
||||
from folkugat_web.services import auth
|
||||
from folkugat_web.templates import templates
|
||||
|
||||
|
||||
@router.get("/")
|
||||
def index(request: Request, logged_in: auth.LoggedIn):
|
||||
return templates.TemplateResponse(
|
||||
"index.html",
|
||||
{
|
||||
"request": request,
|
||||
"page_title": "Folkugat",
|
||||
"content": "/api/content/sessions",
|
||||
"logged_in": logged_in,
|
||||
"animate": True,
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user