new: Expose MISP Export on download modal

pull/741/head
Raphaël Vinot 2023-07-20 14:02:14 +02:00
parent 03bf7888e8
commit 98ae7fb498
2 changed files with 7 additions and 1 deletions

View File

@ -175,7 +175,7 @@ class MISPExport(Resource):
to_return = []
for e in event:
to_return.append(e.to_json(indent=2))
to_return.append(json.loads(e.to_json()))
return to_return

View File

@ -644,6 +644,12 @@
<li>
<a href="{{ url_for('export', tree_uuid=tree_uuid) }}" role="button">Download full capture</a>
</li>
<li>
<a href="{{ url_for('GenericAPI_misp_export', capture_uuid=tree_uuid) }}" role="button">Download as MISP Event</a>
{% if parent_uuid %}
(<a href="{{ url_for('GenericAPI_misp_export', capture_uuid=tree_uuid, with_parents=True) }}" role="button">with parents</a>)
{% endif %}
</li>
{% if has_redirects %}
<li>
<a href="{{ url_for('redirects', tree_uuid=tree_uuid) }}" role="button">Download redirects</a>