From 81636aa6e9a3a31245c707ba15b992996552b786 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Wed, 9 Jan 2019 15:56:10 +0000 Subject: [PATCH] Implemented new JSON response handler --- .../api/v1/blueprints/stage.py | 38 ++++++++----------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/openflexure_microscope/api/v1/blueprints/stage.py b/openflexure_microscope/api/v1/blueprints/stage.py index 18013d0c..3e327109 100644 --- a/openflexure_microscope/api/v1/blueprints/stage.py +++ b/openflexure_microscope/api/v1/blueprints/stage.py @@ -1,4 +1,4 @@ -from openflexure_microscope.api.utilities import parse_payload, get_from_payload, gen, get_bool +from openflexure_microscope.api.utilities import parse_payload, get_from_payload, gen, get_bool, axes_to_array, JsonResponse from openflexure_microscope.api.v1.views import MicroscopeView from flask import Response, Blueprint, jsonify, request @@ -55,25 +55,23 @@ class PositionAPI(MicroscopeView): :