diff --git a/openlp/core/api/versions/v2/controller.py b/openlp/core/api/versions/v2/controller.py index f2a4462e1..645e0eb75 100644 --- a/openlp/core/api/versions/v2/controller.py +++ b/openlp/core/api/versions/v2/controller.py @@ -31,9 +31,9 @@ controller_views = Blueprint('controller', __name__) log = logging.getLogger(__name__) -@controller_views.route('/live-item') -def controller_text_api(): - log.debug('controller-v2-live-item') +@controller_views.route('/live-items') +def controller_live_items(): + log.debug('controller-v2-live-items') live_controller = Registry().get('live_controller') current_item = live_controller.service_item live_item = {} diff --git a/tests/functional/openlp_core/api/v2/test_controller.py b/tests/functional/openlp_core/api/v2/test_controller.py index 64c3a27f4..84dcb59e9 100644 --- a/tests/functional/openlp_core/api/v2/test_controller.py +++ b/tests/functional/openlp_core/api/v2/test_controller.py @@ -36,7 +36,7 @@ def test_retrieve_live_item(flask_client, settings): Registry().register('live_controller', fake_live_controller) # WHEN: The live-item endpoint is called - res = flask_client.get('/api/v2/controller/live-item').get_json() + res = flask_client.get('/api/v2/controller/live-items').get_json() # THEN: The correct item data should be returned assert res == {'slides': [{'selected': True}]}