Skip to content

A free open source IT asset/license management system

Removed index and destroy settinga API endpoints

snipeda33f1815a17
diff --git a/routes/api.php b/routes/api.php
index e183cd1228..9e7842df73 100644
--- a/routes/api.php
+++ b/routes/api.php
@@ -909,13 +909,11 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi
Route::resource('settings',
Api\SettingsController::class,
['names' => [
- 'index' => 'api.settings.index',
'show' => 'api.settings.show',
'update' => 'api.settings.update',
'store' => 'api.settings.store',
- 'destroy' => 'api.settings.destroy',
],
- 'except' => ['create', 'edit'],
+ 'except' => ['create', 'edit', 'index', 'destroy'],
'parameters' => ['setting' => 'setting_id'],
]
); // end settings API