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.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/qc_app/base_routes.py b/qc_app/base_routes.py
index 9023fec..9daf439 100644
--- a/qc_app/base_routes.py
+++ b/qc_app/base_routes.py
@@ -20,3 +20,10 @@ 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}")