Commit 8087e4d4 authored by Joel Collins's avatar Joel Collins
Browse files

Updated to use apply_config and read_config instead of setters and getters

parent 5471ffa6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)