aboutsummaryrefslogtreecommitdiff
path: root/jb/views
diff options
context:
space:
mode:
Diffstat (limited to 'jb/views')
-rw-r--r--jb/views/auth.py6
-rw-r--r--jb/views/common.py6
2 files changed, 6 insertions, 6 deletions
diff --git a/jb/views/auth.py b/jb/views/auth.py
index 1b4c364..cc1224f 100644
--- a/jb/views/auth.py
+++ b/jb/views/auth.py
@@ -32,7 +32,7 @@ from jb.models.auth import (
MagicLinkExchangeRequest,
User,
)
-from jb.settings import BASE_HTML
+from jb.settings import render_base_html
auth_router = APIRouter(prefix="/auth", tags=["Auth"])
@@ -90,7 +90,7 @@ def magic_link_landing_page(
_exchange_magic_link(token, response, gr_api)
return response
return HTMLResponse(
- BASE_HTML,
+ render_base_html(),
headers={
"Cache-Control": "no-store",
"Referrer-Policy": "no-referrer",
@@ -180,7 +180,7 @@ def link_amt_account_landing_page(
_exchange_amt_account_link(token=token, response=_response, gr_api=gr_api)
return HTMLResponse(
- BASE_HTML,
+ render_base_html(),
headers={
"Cache-Control": "no-store",
"Referrer-Policy": "no-referrer",
diff --git a/jb/views/common.py b/jb/views/common.py
index 9eee453..f58acda 100644
--- a/jb/views/common.py
+++ b/jb/views/common.py
@@ -13,7 +13,7 @@ from jb.decorators import get_redis_config
from jb.flow.monitoring import emit_mturk_notification_event
from jb.models.auth import User
from jb.models.event import MTurkEvent
-from jb.settings import BASE_HTML
+from jb.settings import render_base_html
common_router = APIRouter(prefix="", tags=["API"], include_in_schema=True)
@@ -39,7 +39,7 @@ async def work(request: Request):
status_code=302,
)
- return HTMLResponse(BASE_HTML)
+ return HTMLResponse(render_base_html())
RedisConfigDep = Annotated[RedisConfig, Depends(get_redis_config)]
@@ -95,4 +95,4 @@ async def work_direct(
Makes sure user is authenticated.
"""
# todo: emit event
- return HTMLResponse(BASE_HTML)
+ return HTMLResponse(render_base_html())