diff --git a/rest/index.php b/rest/index.php index 1cfc9eae17e208699ef6739485cbfdab63c07861..2462594f0358dfeac2d2e6b5a47a26a785c01ebf 100755 --- a/rest/index.php +++ b/rest/index.php @@ -128,7 +128,7 @@ $app->put('/baskets/{id}/groups/{groupId}', \Basket\controllers\BasketController $app->delete('/baskets/{id}/groups/{groupId}', \Basket\controllers\BasketController::class . ':deleteGroup'); $app->get('/baskets/{id}/groups/data', \Basket\controllers\BasketController::class . ':getDataForGroupById'); $app->get('/sortedBaskets', \Basket\controllers\BasketController::class . ':getSorted'); -$app->put('/sortedBaskets/{id}', \Basket\controllers\BasketController::class . ':updateSorted'); +$app->put('/sortedBaskets/{id}', \Basket\controllers\BasketController::class . ':updateSort'); //status $app->get('/administration/status', \Core\Controllers\StatusController::class . ':getList'); diff --git a/src/app/basket/controllers/BasketController.php b/src/app/basket/controllers/BasketController.php index ddfb9a9b482974d12168e1b7d844270fd0814477..45bf742815e82e39432610d97059436c5979b3fc 100644 --- a/src/app/basket/controllers/BasketController.php +++ b/src/app/basket/controllers/BasketController.php @@ -139,7 +139,7 @@ class BasketController return $response->withJson(['baskets' => $baskets]); } - public function updateSorted(Request $request, Response $response, $aArgs) + public function updateSort(Request $request, Response $response, $aArgs) { if (!ServiceModel::hasService(['id' => 'admin_baskets', 'userId' => $GLOBALS['userId'], 'location' => 'basket', 'type' => 'admin'])) { return $response->withStatus(403)->withJson(['errors' => 'Service forbidden']);