Skip to content

A free open source IT asset/license management system

Add an API endpoint to download files

Scarzybbb914574491
diff --git a/routes/api.php b/routes/api.php
index a4486dfc6b..bb84f96aeb 100644
--- a/routes/api.php
+++ b/routes/api.php
@@ -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',