add the request parameter to render_template

This allows us to inspect things about the request we're rendering from.

* Use render_template(request, ...) in aurweb.routers.auth

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-01-08 20:24:22 -08:00
parent 5d4a5deddf
commit 4423326cec
4 changed files with 12 additions and 6 deletions

View file

@ -47,7 +47,7 @@ async def language(request: Request,
async def index(request: Request):
""" Homepage route. """
context = make_context(request, "Home")
return render_template("index.html", context)
return render_template(request, "index.html", context)
# A route that returns a error 503. For testing purposes.