From a481e88251de51ad0d3b18d12d0ec7e657aed5dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Aime?= Date: Wed, 9 Jun 2021 12:49:28 +0200 Subject: [PATCH] Deleting get iocs endpoint --- server/backend/app/blueprints/misp.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/server/backend/app/blueprints/misp.py b/server/backend/app/blueprints/misp.py index 228c685..dcd92f0 100644 --- a/server/backend/app/blueprints/misp.py +++ b/server/backend/app/blueprints/misp.py @@ -46,20 +46,3 @@ def get_all(): """ res = MISP().get_instances() 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)