fix: [titles] add api to get all titles

This commit is contained in:
terrtia 2024-02-15 15:19:18 +01:00
parent 05c8100b8b
commit 811ee45993
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -698,7 +698,7 @@ def v1_ping():
@restApi.route("api/v1/titles/download", methods=['GET'])
@token_required('read_only')
def objects_titles_downloads():
return Response(Titles.Titles().get_contents_ids(), mimetype='application/json'), 200
return Response(json.dumps(Titles.Titles().get_contents_ids()), mimetype='application/json'), 200
# ========= REGISTRATION =========