summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-08-03 11:48:20 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-08-03 13:15:46 +0200
commit4266749e1770863eb6c8b219108f392fbc2bd8a3 (patch)
tree2c3a5a6c8bfc2552aee2538dc269a671ffcac59f
parent2694f24318db197de027f48b9358db7dd5381328 (diff)
Change GET and POST /modes URI to /mode
This adapts to the ogServer.
-rw-r--r--admin/WebConsole/includes/restfunctions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/WebConsole/includes/restfunctions.php b/admin/WebConsole/includes/restfunctions.php
index 1ec43744..5c689a70 100644
--- a/admin/WebConsole/includes/restfunctions.php
+++ b/admin/WebConsole/includes/restfunctions.php
@@ -31,7 +31,7 @@ define('OG_REST_CMD_CREATE_SCHEDULE', 'schedule/create');
define('OG_REST_CMD_DELETE_SCHEDULE', 'schedule/delete');
define('OG_REST_CMD_UPDATE_SCHEDULE', 'schedule/update');
define('OG_REST_CMD_GET_SCHEDULE', 'schedule/get');
-define('OG_REST_CMD_MODES', 'modes');
+define('OG_REST_CMD_MODE', 'mode');
define('OG_REST_PARAM_CLIENTS', 'clients');
define('OG_REST_PARAM_ADDR', 'addr');
@@ -234,7 +234,7 @@ function set_mode($scope_name, $mode) {
$data = array(OG_REST_PARAM_SCOPE_NAME => $scope_name,
OG_REST_PARAM_MODE => $mode);
- common_request(OG_REST_CMD_MODES, POST, $data);
+ common_request(OG_REST_CMD_MODE, POST, $data);
}
function create_image($string_ips, $params) {