From 05c8100b8b4e83ba96a3d824d2c5c9c1bff609df Mon Sep 17 00:00:00 2001 From: terrtia Date: Thu, 15 Feb 2024 14:45:15 +0100 Subject: [PATCH] fix: [titles] add api to get all titles --- var/www/modules/restApi/Flask_restApi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/www/modules/restApi/Flask_restApi.py b/var/www/modules/restApi/Flask_restApi.py index 12bf4216..ad81ad4f 100644 --- a/var/www/modules/restApi/Flask_restApi.py +++ b/var/www/modules/restApi/Flask_restApi.py @@ -698,7 +698,7 @@ def v1_ping(): @restApi.route("api/v1/titles/download", methods=['GET']) @token_required('read_only') def objects_titles_downloads(): - return jsonify(Titles.Titles().get_contents_ids()) + return Response(Titles.Titles().get_contents_ids(), mimetype='application/json'), 200 # ========= REGISTRATION =========