mirror of https://github.com/CIRCL/lookyloo
Module response added
parent
680735b3d3
commit
471c2c938c
|
@ -281,6 +281,13 @@ class TriggerModules(Resource): # type: ignore[misc]
|
||||||
force = True if parameters.get('force') else False
|
force = True if parameters.get('force') else False
|
||||||
return lookyloo.trigger_modules(capture_uuid, force=force)
|
return lookyloo.trigger_modules(capture_uuid, force=force)
|
||||||
|
|
||||||
|
@api.route('/json/<string:tree_uuid>/modules')
|
||||||
|
@api.doc(description='Get responses from the 3rd party modules',
|
||||||
|
params={'tree_uuid': 'The UUID of the capture'})
|
||||||
|
class ModulesResponse(Resource): # type: ignore[misc]
|
||||||
|
def get(self, tree_uuid: str) -> dict[str, Any]:
|
||||||
|
return lookyloo.get_modules_responses(tree_uuid)
|
||||||
|
|
||||||
|
|
||||||
@api.route('/json/hash_info/<h>')
|
@api.route('/json/hash_info/<h>')
|
||||||
@api.doc(description='Search for a ressource with a specific hash (sha512)',
|
@api.doc(description='Search for a ressource with a specific hash (sha512)',
|
||||||
|
|
Loading…
Reference in New Issue