diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-08-03 11:49:38 +0200 |
---|---|---|
committer | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-08-03 11:49:38 +0200 |
commit | d4f4497056582c379722fcc92c3372c98825865e (patch) | |
tree | 7c0d8501068a83d1e7467570bde601b2f3ff1e79 /cli | |
parent | adb2e9ffba6fca39a78927f6d92534e2f37ac6c3 (diff) |
Change GET and POST /modes URI to /mode
This adapts to the ogServer.
Diffstat (limited to 'cli')
-rw-r--r-- | cli/objects/modes.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |