From 0a88442aa258c01ba0b1196e966658e16d64ac45 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sat, 6 Nov 2021 15:04:26 +0100 Subject: [PATCH] Corrected the settings routing config --- application/config/routes.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/application/config/routes.php b/application/config/routes.php index 935360cc..2302aec8 100644 --- a/application/config/routes.php +++ b/application/config/routes.php @@ -83,13 +83,11 @@ route_api_resource($route, 'services', 'api/v1/'); route_api_resource($route, 'unavailabilities', 'api/v1/'); -$route['api/v1/settings']['get'] = 'api/v1/settings_api_v1/get'; +$route['api/v1/settings']['get'] = 'api/v1/settings_api_v1/index'; -$route['api/v1/settings/(:any)']['get'] = 'api/v1/settings_api_v1/get/$1'; +$route['api/v1/settings/(:any)']['get'] = 'api/v1/settings_api_v1/show/$1'; -$route['api/v1/settings/(:any)']['put'] = 'api/v1/settings_api_v1/put/$1'; - -$route['api/v1/settings/(:any)']['delete'] = 'api/v1/settings_api_v1/delete/$1'; +$route['api/v1/settings/(:any)']['put'] = 'api/v1/settings_api_v1/update/$1'; $route['api/v1/availabilities']['get'] = 'api/v1/availabilities_api_v1/get';