From 9a8dddab072748a70d43416ac8e6db69ad6fb0cb Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 25 Jun 2024 15:31:03 -0500 Subject: Add route to fetch node-js modules. --- qc_app/base_routes.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'qc_app/base_routes.py') 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/") +def node_modules(filename): + """Fetch node-js modules.""" + return send_from_directory( + appenv(), f"lib/node_modules/{filename}") -- cgit v1.2.3