mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 22:07:29 -08:00
Fix models files API routes.
This commit is contained in:
parent
4ec361c718
commit
da7313bc9d
|
@ -809,28 +809,28 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi
|
||||||
Api\AssetModelFilesController::class,
|
Api\AssetModelFilesController::class,
|
||||||
'store'
|
'store'
|
||||||
]
|
]
|
||||||
)->name('api.models.files');
|
)->name('api.models.files.store');
|
||||||
|
|
||||||
Route::get('{model_id}/files',
|
Route::get('{model_id}/files',
|
||||||
[
|
[
|
||||||
Api\AssetModelFilesController::class,
|
Api\AssetModelFilesController::class,
|
||||||
'list'
|
'list'
|
||||||
]
|
]
|
||||||
)->name('api.models.files');
|
)->name('api.models.files.index');
|
||||||
|
|
||||||
Route::get('{model_id}/file/{file_id}',
|
Route::get('{model_id}/file/{file_id}',
|
||||||
[
|
[
|
||||||
Api\AssetModelFilesController::class,
|
Api\AssetModelFilesController::class,
|
||||||
'show'
|
'show'
|
||||||
]
|
]
|
||||||
)->name('api.models.assets.file');
|
)->name('api.models.files.show');
|
||||||
|
|
||||||
Route::delete('{model_id}/file/{file_id}',
|
Route::delete('{model_id}/file/{file_id}',
|
||||||
[
|
[
|
||||||
Api\AssetModelFilesController::class,
|
Api\AssetModelFilesController::class,
|
||||||
'destroy'
|
'destroy'
|
||||||
]
|
]
|
||||||
)->name('api.models.file');
|
)->name('api.models.files.destroy');
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::resource('models',
|
Route::resource('models',
|
||||||
|
|
Loading…
Reference in a new issue