aboutsummaryrefslogtreecommitdiff
path: root/uploader/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'uploader/__init__.py')
-rw-r--r--uploader/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/uploader/__init__.py b/uploader/__init__.py
index a3b36e7..e4b5b32 100644
--- a/uploader/__init__.py
+++ b/uploader/__init__.py
@@ -6,6 +6,8 @@ from pathlib import Path
from flask import Flask, request
from flask_session import Session
+from uploader.oauth2.client import authserver_authorise_uri
+
from .entry import entrybp
from .upload import upload
from .parse import parsebp
@@ -41,6 +43,9 @@ def create_app():
# setup jinja2 symbols
app.add_template_global(lambda : request.url, name="request_url")
+ app.add_template_global(authserver_authorise_uri)
+ app.add_template_global(lambda: app.config["GN2_SERVER_URL"],
+ name="gn2server_uri")
Session(app)