From 2a9f51a40f3f30949ec6169af9f5e8eadaf32c87 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 20 Jan 2023 12:33:45 +0100 Subject: [PATCH] Update web.php Fix report routes. --- routes/web.php | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/routes/web.php b/routes/web.php index ed6c96a0c4..ae8b5b50b4 100644 --- a/routes/web.php +++ b/routes/web.php @@ -845,31 +845,14 @@ Route::group( static function () { Route::get('', ['uses' => 'ReportController@index', 'as' => 'index']); Route::get('options/{reportType}', ['uses' => 'ReportController@options', 'as' => 'options']); - Route::get('default/{accountList}/{start_date}/{end_date}', ['uses' => 'ReportController@defaultReport', 'as' => 'report.default'])->where( - ['start_date' => DATEFORMAT] - ) - ->where(['end_date' => DATEFORMAT]); - Route::get('audit/{accountList}/{start_date}/{end_date}', ['uses' => 'ReportController@auditReport', 'as' => 'report.audit'])->where( - ['start_date' => DATEFORMAT] - ) - ->where(['end_date' => DATEFORMAT]); + Route::get('default/{accountList}/{start_date}/{end_date}', ['uses' => 'ReportController@defaultReport', 'as' => 'report.default']); + Route::get('audit/{accountList}/{start_date}/{end_date}', ['uses' => 'ReportController@auditReport', 'as' => 'report.audit']); Route::get( 'category/{accountList}/{categoryList}/{start_date}/{end_date}', - ['uses' => 'ReportController@categoryReport', 'as' => 'report.category'] - )->where(['start_date' => DATEFORMAT]) - ->where(['end_date' => DATEFORMAT]); - Route::get('budget/{accountList}/{budgetList}/{start_date}/{end_date}', ['uses' => 'ReportController@budgetReport', 'as' => 'report.budget'])->where( - ['start_date' => DATEFORMAT] - ) - ->where(['end_date' => DATEFORMAT]); - Route::get('tag/{accountList}/{tagList}/{start_date}/{end_date}', ['uses' => 'ReportController@tagReport', 'as' => 'report.tag'])->where( - ['start_date' => DATEFORMAT] - ) - ->where(['end_date' => DATEFORMAT]); - Route::get('double/{accountList}/{doubleList}/{start_date}/{end_date}', ['uses' => 'ReportController@doubleReport', 'as' => 'report.double'])->where( - ['start_date' => DATEFORMAT] - ) - ->where(['end_date' => DATEFORMAT]); + ['uses' => 'ReportController@categoryReport', 'as' => 'report.category']); + Route::get('budget/{accountList}/{budgetList}/{start_date}/{end_date}', ['uses' => 'ReportController@budgetReport', 'as' => 'report.budget']); + Route::get('tag/{accountList}/{tagList}/{start_date}/{end_date}', ['uses' => 'ReportController@tagReport', 'as' => 'report.tag']); + Route::get('double/{accountList}/{doubleList}/{start_date}/{end_date}', ['uses' => 'ReportController@doubleReport', 'as' => 'report.double']); Route::post('', ['uses' => 'ReportController@postIndex', 'as' => 'index.post']); }