forked from p34709852/monkey
Island: Return a list in Propagation Credentials endpoint
This commit is contained in:
parent
777897cb74
commit
af1ab34aa3
|
@ -1,4 +1,4 @@
|
|||
from flask import make_response
|
||||
from flask import jsonify
|
||||
|
||||
from monkey_island.cc.repository import ICredentialsRepository
|
||||
from monkey_island.cc.resources.AbstractResource import AbstractResource
|
||||
|
@ -13,4 +13,4 @@ class PropagationCredentials(AbstractResource):
|
|||
def get(self):
|
||||
propagation_credentials = self._credentials_repository.get_all_credentials()
|
||||
|
||||
return make_response({"propagation_credentials": propagation_credentials})
|
||||
return jsonify(propagation_credentials)
|
||||
|
|
Loading…
Reference in New Issue