diff --git a/compendium_v2/routes/survey.py b/compendium_v2/routes/survey.py index f1b74663d8b2d5751f6518274c212f514bf55402..f11c28e55fa7d6ff3cc77cdc164dabde57ff69ef 100644 --- a/compendium_v2/routes/survey.py +++ b/compendium_v2/routes/survey.py @@ -58,12 +58,13 @@ SURVEY_ACTIVE_YEAR_RESPONSE_SCHEMA = { "additionalProperties": False } + @routes.route('/active/year', methods=['GET']) @common.require_accepts_json @login_required def get_active_survey_year() -> Any: """ - retrieve a year of latest active survey + retrieve a year of latest active survey response will be formatted as: @@ -82,9 +83,6 @@ def get_active_survey_year() -> Any: return {'message': 'No open survey found.'}, 404 - - - @routes.route('/list', methods=['GET']) @common.require_accepts_json @login_required