mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Add an API endpoint to download files
This commit is contained in:
parent
194853d860
commit
bbb9145744
|
@ -558,6 +558,13 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi
|
||||||
]
|
]
|
||||||
)->name('api.assets.files');
|
)->name('api.assets.files');
|
||||||
|
|
||||||
|
Route::get('{asset_id}/file/{file_id}',
|
||||||
|
[
|
||||||
|
Api\AssetFilesController::class,
|
||||||
|
'show'
|
||||||
|
]
|
||||||
|
)->name('api.assets.files');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::resource('hardware',
|
Route::resource('hardware',
|
||||||
|
|
Loading…
Reference in a new issue