aboutsummaryrefslogtreecommitdiff
path: root/uploader/species
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-18 01:36:51 -0500
committerFrederick Muriuki Muriithi2024-09-18 01:36:51 -0500
commit590ef1232032958dd448c2eaa9ca760e008a9687 (patch)
tree9fdd32a400816f8ca42cbfcb45781726dc5ba366 /uploader/species
parent7531b17018a0a81edce95802cc370661106cc481 (diff)
downloadgn-uploader-590ef1232032958dd448c2eaa9ca760e008a9687.tar.gz
Put endpoint behind auth.
Diffstat (limited to 'uploader/species')
-rw-r--r--uploader/species/views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/uploader/species/views.py b/uploader/species/views.py
index 08d3728..f478505 100644
--- a/uploader/species/views.py
+++ b/uploader/species/views.py
@@ -27,6 +27,7 @@ render_template = make_template_renderer("species")
@speciesbp.route("/", methods=["GET"])
+@require_login
def list_species():
"""List and display all the species in the database."""
with database_connection(app.config["SQL_URI"]) as conn: