From 102264c4be450176a3eb4d87f8d871fbd687b72c Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Thu, 23 Apr 2020 08:09:21 +0100 Subject: [PATCH] The "actions" endpoint shouldn't be tagged The actions endpoint (responds only to GET, lists the actions) is not itself an action. The ``@tag("actions")`` causes LabThings to try to include it as an action, which fails. Removing the tag makes the server run again - but maybe I've broken something else here? --- openflexure_microscope/api/v2/views/actions/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openflexure_microscope/api/v2/views/actions/__init__.py b/openflexure_microscope/api/v2/views/actions/__init__.py index abab2118..19bf25eb 100644 --- a/openflexure_microscope/api/v2/views/actions/__init__.py +++ b/openflexure_microscope/api/v2/views/actions/__init__.py @@ -58,7 +58,7 @@ def enabled_root_actions(): return {k: v for k, v in _actions.items() if v["conditions"]} -@Tag("actions") +#@Tag("actions") class ActionsView(View): def get(self): """