From 590ef1232032958dd448c2eaa9ca760e008a9687 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 18 Sep 2024 01:36:51 -0500 Subject: Put endpoint behind auth. --- uploader/species/views.py | 1 + 1 file changed, 1 insertion(+) (limited to 'uploader/species/views.py') 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: -- cgit v1.2.3