Deleting get iocs endpoint
This commit is contained in:
parent
1d1c217258
commit
a481e88251
@ -46,20 +46,3 @@ def get_all():
|
|||||||
"""
|
"""
|
||||||
res = MISP().get_instances()
|
res = MISP().get_instances()
|
||||||
return jsonify({"results": [i for i in res]})
|
return jsonify({"results": [i for i in res]})
|
||||||
|
|
||||||
|
|
||||||
@misp_bp.route('/get_iocs', methods=['POST'])
|
|
||||||
# @require_header_token
|
|
||||||
def get_iocs():
|
|
||||||
"""
|
|
||||||
Retreive a list of all MISP instances.
|
|
||||||
:return: list of MISP instances in JSON.
|
|
||||||
"""
|
|
||||||
|
|
||||||
data = json.loads(request.data)
|
|
||||||
data = data["data"]
|
|
||||||
|
|
||||||
res = MISP.get_iocs(data["misp_id"],
|
|
||||||
data["limit"],
|
|
||||||
data["page"])
|
|
||||||
return jsonify(res)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user