aboutsummaryrefslogtreecommitdiff
path: root/qc_app/base_routes.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-06-14 10:32:45 -0500
committerFrederick Muriuki Muriithi2024-06-14 10:43:57 -0500
commit6043dabe8f1351f567843a6c0509958d6d56870a (patch)
treed1acecc86e20e754300729792c983cfcf84f1306 /qc_app/base_routes.py
parent026d10646c2589d672b81c5f0b8e8ed6bc994122 (diff)
downloadgn-uploader-6043dabe8f1351f567843a6c0509958d6d56870a.tar.gz
jquery, bootstrap: update page dependencies
* Add jquery which is needed for bootstrap plugins. * Add the default bootstrap theme. * Provide route to serve up jquery libraries.
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 dbfcf48..9023fec 100644
--- a/qc_app/base_routes.py
+++ b/qc_app/base_routes.py
@@ -13,3 +13,10 @@ 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}")