Updated to use apply_config and read_config instead of setters and getters
This commit is contained in:
parent
5471ffa62b
commit
8087e4d445
1 changed files with 2 additions and 2 deletions
|
|
@ -136,7 +136,7 @@ class ConfigAPI(MicroscopeView):
|
|||
:>header Content-Type: application/json
|
||||
:status 200: state available
|
||||
"""
|
||||
return jsonify(self.microscope.config)
|
||||
return jsonify(self.microscope.read_config())
|
||||
|
||||
def post(self):
|
||||
"""
|
||||
|
|
@ -172,7 +172,7 @@ class ConfigAPI(MicroscopeView):
|
|||
|
||||
print(payload.json)
|
||||
|
||||
self.microscope.config = payload.json
|
||||
self.microscope.apply_config(payload.json)
|
||||
|
||||
return jsonify(self.microscope.config)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue