From 67357e07f1035c8361c6af5d79633b9abc2df9b6 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 1 Sep 2021 17:05:00 -0700 Subject: [PATCH] Added API route for depreciations report RED FLAG: This will need to be updated for v6!!!! Signed-off-by: snipe --- routes/api.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/routes/api.php b/routes/api.php index 51032feaa..398af78bc 100644 --- a/routes/api.php +++ b/routes/api.php @@ -903,6 +903,14 @@ Route::group(['prefix' => 'v1','namespace' => 'Api', 'middleware' => 'auth:api'] [ 'as' => 'api.activity.index', 'uses' => 'ReportsController@index' ] ); + Route::get( + 'reports/depreciation', + [ + 'as' => 'api.depreciation-report.index', + 'uses' => 'AssetsController@index' + ] + ); + /*--- Kits API ---*/ Route::resource('kits', 'PredefinedKitsController',