mirror of https://github.com/CIRCL/AIL-framework
fix: [titles] add api to get all titles
parent
e83323c672
commit
05c8100b8b
|
@ -698,7 +698,7 @@ def v1_ping():
|
||||||
@restApi.route("api/v1/titles/download", methods=['GET'])
|
@restApi.route("api/v1/titles/download", methods=['GET'])
|
||||||
@token_required('read_only')
|
@token_required('read_only')
|
||||||
def objects_titles_downloads():
|
def objects_titles_downloads():
|
||||||
return jsonify(Titles.Titles().get_contents_ids())
|
return Response(Titles.Titles().get_contents_ids(), mimetype='application/json'), 200
|
||||||
|
|
||||||
|
|
||||||
# ========= REGISTRATION =========
|
# ========= REGISTRATION =========
|
||||||
|
|
Loading…
Reference in New Issue