summaryrefslogtreecommitdiff
path: root/src/match_up/routes.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/match_up/routes.py')
-rw-r--r--src/match_up/routes.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/match_up/routes.py b/src/match_up/routes.py
index 528fa4e..524d50b 100644
--- a/src/match_up/routes.py
+++ b/src/match_up/routes.py
@@ -1,6 +1,9 @@
-from match_up import app, re, rg
+from match_up import app, rg
+from jinja2 import Environment, PackageLoader
from flask import render_template, request, url_for
+re = Environment(loader=PackageLoader("match_up"))
+
@app.route("/", methods=["GET"])
def home():
template = re.get_template("index.j2").render(url_for=url_for)