From d4f4497056582c379722fcc92c3372c98825865e Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Mon, 3 Aug 2020 11:49:38 +0200 Subject: Change GET and POST /modes URI to /mode This adapts to the ogServer. --- cli/objects/modes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli') diff --git a/cli/objects/modes.py b/cli/objects/modes.py index a813d06..6171c84 100644 --- a/cli/objects/modes.py +++ b/cli/objects/modes.py @@ -12,7 +12,7 @@ class OgModes(): @staticmethod def list_available_modes(rest): - r = rest.get('/modes') + r = rest.get('/mode') print(r.json()) @staticmethod @@ -30,4 +30,4 @@ class OgModes(): payload = {'scope_name': parsed_args.scope_name[0], 'mode': parsed_args.mode[0]} - r = rest.post('/modes', payload=payload) + r = rest.post('/mode', payload=payload) -- cgit v1.2.3-18-g5258