From 1d1c217258c80f59305e330cb4c53e1660257f68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Aime?= Date: Wed, 9 Jun 2021 12:48:44 +0200 Subject: [PATCH] Deleting edit endpoint --- server/backend/app/blueprints/misp.py | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/server/backend/app/blueprints/misp.py b/server/backend/app/blueprints/misp.py index 8686bb5..228c685 100644 --- a/server/backend/app/blueprints/misp.py +++ b/server/backend/app/blueprints/misp.py @@ -44,7 +44,7 @@ def get_all(): Retreive a list of all MISP instances. :return: list of MISP instances in JSON. """ - res = MISP.get_instances() + res = MISP().get_instances() return jsonify({"results": [i for i in res]}) @@ -63,20 +63,3 @@ def get_iocs(): data["limit"], data["page"]) return jsonify(res) - - -@misp_bp.route('/edit', methods=['POST']) -@require_header_token -def edit_instance(): - """ - Parse and edit the desired MISP instance. - :return: status of the operation in JSON - """ - data = json.loads(request.data) - instance = data["data"]["instance"] - res = MISP.edit_instance(instance["id"], - instance["name"], - instance["url"], - instance["apikey"], - instance["verifycert"]) - return jsonify(res)