diff --git a/openflexure_microscope/api/v1/blueprints/base.py b/openflexure_microscope/api/v1/blueprints/base.py index 1a6353f1..bee8c37b 100644 --- a/openflexure_microscope/api/v1/blueprints/base.py +++ b/openflexure_microscope/api/v1/blueprints/base.py @@ -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)