Change GET and POST /modes URI to /mode

This adapts to the ogServer.
master
Roberto Hueso Gómez 2020-08-03 11:49:38 +02:00
parent adb2e9ffba
commit d4f4497056
1 changed files with 2 additions and 2 deletions

View File

@ -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)