From a77ed8e273b76cb7abe194ac42cf1febb591cb26 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Wed, 18 Dec 2019 15:00:08 +0000 Subject: [PATCH] Removed debug routes --- openflexure_microscope/api/app.py | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/openflexure_microscope/api/app.py b/openflexure_microscope/api/app.py index 070a8739..11ff9337 100644 --- a/openflexure_microscope/api/app.py +++ b/openflexure_microscope/api/app.py @@ -86,6 +86,7 @@ handler = JSONExceptionHandler(app) # Build a labthing labthing = LabThing(app, prefix="/api/v2") labthing.description = "Test LabThing-based API for OpenFlexure Microscope" +labthing.title = f"OpenFlexure Microscope {api_microscope.name}" # Attach lab devices labthing.register_device(api_microscope, "openflexure_microscope") @@ -146,26 +147,6 @@ def routes(): return jsonify(list_routes(app)) -@app.route("/props") -def props(): - p = {} - for key, prop in labthing.properties.items(): - p[key] = {} - p[key]["view"] = prop - p[key]["url"] = labthing.url_for(prop, _external=True) - return jsonify(p) - - -@app.route("/ac") -def actions(): - p = {} - for key, prop in labthing.actions.items(): - p[key] = {} - p[key]["view"] = prop - p[key]["url"] = labthing.url_for(prop, _external=True) - return jsonify(p) - - @app.route("/log") def err_log(): """