From f6a1a7609555865851df0edd20b312c1875952f8 Mon Sep 17 00:00:00 2001 From: Scarzy Date: Wed, 1 May 2024 18:46:23 +0100 Subject: [PATCH] Add an endpoint for deleting a file --- routes/api.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/routes/api.php b/routes/api.php index bb84f96aeb..181c84c1b5 100644 --- a/routes/api.php +++ b/routes/api.php @@ -565,6 +565,13 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi ] )->name('api.assets.files'); + Route::delete('{asset_id}/file/{file_id}', + [ + Api\AssetFilesController::class, + 'destroy' + ] + )->name('api.assets.files'); + }); Route::resource('hardware',