forked from p34709852/monkey
Island: Add returns to the post and get credential resources
This commit is contained in:
parent
872d062649
commit
c5ba5d444d
|
@ -21,6 +21,8 @@ class ConfiguredPropagationCredentials(AbstractResource):
|
|||
def post(self):
|
||||
credentials = Credentials.from_mapping(request.json)
|
||||
self._credentials_repository.save_configured_credentials(credentials)
|
||||
return {}, 204
|
||||
|
||||
def delete(self):
|
||||
self._credentials_repository.remove_configured_credentials()
|
||||
return {}, 204
|
||||
|
|
|
@ -21,6 +21,8 @@ class StolenPropagationCredentials(AbstractResource):
|
|||
def post(self):
|
||||
credentials = Credentials.from_mapping(request.json)
|
||||
self._credentials_repository.save_stolen_credentials(credentials)
|
||||
return {}, 204
|
||||
|
||||
def delete(self):
|
||||
self._credentials_repository.remove_stolen_credentials()
|
||||
return {}, 204
|
||||
|
|
Loading…
Reference in New Issue