mirror of
https://github.com/grokability/snipe-it.git
synced 2026-03-12 17:52:00 +08:00
Exclude show route for settings API [RB-17718]
This commit is contained in:
@@ -942,11 +942,10 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'api-throttle:api']], fu
|
||||
Route::resource('settings',
|
||||
Api\SettingsController::class,
|
||||
['names' => [
|
||||
'show' => 'api.settings.show',
|
||||
'update' => 'api.settings.update',
|
||||
'store' => 'api.settings.store',
|
||||
],
|
||||
'except' => ['create', 'edit', 'index', 'destroy'],
|
||||
'except' => ['create', 'edit', 'index', 'destroy', 'show'],
|
||||
'parameters' => ['setting' => 'setting_id'],
|
||||
]
|
||||
); // end settings API
|
||||
|
||||
Reference in New Issue
Block a user