From 5328b81c7063d6c565faa4af4003badeae259521 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Sun, 11 Feb 2018 18:06:33 +0000 Subject: [PATCH] Fix controller error --- openlp/core/api/endpoint/controller.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openlp/core/api/endpoint/controller.py b/openlp/core/api/endpoint/controller.py index 4e897f370..cf7153145 100644 --- a/openlp/core/api/endpoint/controller.py +++ b/openlp/core/api/endpoint/controller.py @@ -117,12 +117,11 @@ def controller_set(request): return {'results': {'success': True}} -@controller_endpoint.route('{action:next|previous}') +@controller_endpoint.route('{controller}/{action:next|previous}') @requires_auth def controller_direction(request, controller, action): """ Handles requests for setting service items in the slide controller -11 :param request: The http request object. :param controller: the controller slides forward or backward. :param action: the controller slides forward or backward. @@ -137,7 +136,7 @@ def controller_direction(request, controller, action): def controller_direction_api(request, controller, action): """ Handles requests for setting service items in the slide controller -11 + :param request: The http request object. :param controller: the controller slides forward or backward. :param action: the controller slides forward or backward.