forked from p15670423/monkey
Island: Simplify logic to get data from request in IslandMode PUT
This commit is contained in:
parent
f652a489b7
commit
d56951f152
|
@ -21,7 +21,7 @@ class IslandMode(AbstractResource):
|
||||||
@jwt_required
|
@jwt_required
|
||||||
def put(self):
|
def put(self):
|
||||||
try:
|
try:
|
||||||
mode = IslandModeEnum(json.loads(request.data))
|
mode = IslandModeEnum(request.json)
|
||||||
|
|
||||||
self._island_mode_service.set_mode(mode)
|
self._island_mode_service.set_mode(mode)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue