aboutsummaryrefslogtreecommitdiff
path: root/qc_app/base_routes.py
diff options
context:
space:
mode:
Diffstat (limited to 'qc_app/base_routes.py')
-rw-r--r--qc_app/base_routes.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/qc_app/base_routes.py b/qc_app/base_routes.py
deleted file mode 100644
index 9daf439..0000000
--- a/qc_app/base_routes.py
+++ /dev/null
@@ -1,29 +0,0 @@
-"""Basic routes required for all pages"""
-import os
-from flask import Blueprint, send_from_directory
-
-base = Blueprint("base", __name__)
-
-def appenv():
- """Get app's guix environment path."""
- return os.environ.get("GN_UPLOADER_ENVIRONMENT")
-
-@base.route("/bootstrap/<path:filename>")
-def bootstrap(filename):
- """Fetch bootstrap files."""
- return send_from_directory(
- appenv(), f"share/genenetwork2/javascript/bootstrap/{filename}")
-
-
-@base.route("/jquery/<path:filename>")
-def jquery(filename):
- """Fetch jquery files."""
- return send_from_directory(
- appenv(), f"share/genenetwork2/javascript/jquery/{filename}")
-
-
-@base.route("/node-modules/<path:filename>")
-def node_modules(filename):
- """Fetch node-js modules."""
- return send_from_directory(
- appenv(), f"lib/node_modules/{filename}")