Add an API endpoint to download files

This commit is contained in:
Scarzy 2024-04-30 23:12:39 +01:00
parent 194853d860
commit bbb9145744

View file

@ -558,6 +558,13 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi
]
)->name('api.assets.files');
Route::get('{asset_id}/file/{file_id}',
[
Api\AssetFilesController::class,
'show'
]
)->name('api.assets.files');
});
Route::resource('hardware',