From 68541fdddb6ca30b833da490b29c9efc7fe802ad Mon Sep 17 00:00:00 2001 From: jtc42 Date: Sat, 21 Dec 2019 16:19:52 +0000 Subject: [PATCH] Removed explicit endpoints --- openflexure_microscope/api/app.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/openflexure_microscope/api/app.py b/openflexure_microscope/api/app.py index 50123f81..461f3a71 100644 --- a/openflexure_microscope/api/app.py +++ b/openflexure_microscope/api/app.py @@ -80,19 +80,18 @@ for plugin in find_plugins(USER_PLUGINS_PATH): labthing.register_plugin(plugin) # Attach captures resources -labthing.add_resource(views.CaptureList, f"/captures", endpoint="CaptureList") +labthing.add_resource(views.CaptureList, f"/captures") labthing.register_property(views.CaptureList) labthing.add_resource( - views.CaptureResource, f"/captures/", endpoint="CaptureResource" + views.CaptureResource, f"/captures/" ) labthing.add_resource( views.CaptureDownload, f"/captures//download/", - endpoint="CaptureDownload", ) -labthing.add_resource(views.CaptureTags, f"/captures//tags", endpoint="CaptureTags") +labthing.add_resource(views.CaptureTags, f"/captures//tags") labthing.add_resource( - views.CaptureMetadata, f"/captures//metadata", endpoint="CaptureMetadata" + views.CaptureMetadata, f"/captures//metadata" ) # Attach settings and status resources