mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-28 00:44:23 +00:00
tidy up route and put reports route inside report.php
This commit is contained in:
+1
-4
@@ -54,10 +54,7 @@ Route::group(['middleware' => 'api', 'prefix' => 'v1', 'as' => 'api.'], function
|
||||
|
||||
require __DIR__ . '/announcement.php';
|
||||
|
||||
Route::get('/report/customer/{marking}/{from?}/{to?}', 'Reports\MonthlyReportController@customerReport')->name('report.customer');
|
||||
Route::get('/report/sales/{from?}/{to?}', 'Reports\MonthlyReportController@salesReport')->name('report.sales');
|
||||
Route::get('/report/profit/{model}/{value}/{from?}/{to?}', 'Reports\MonthlyReportController@profitModelReport')->name('report.profit');
|
||||
Route::get('/report/service', 'Reports\MonthlyReportController@serviceReport')->name('report.service');
|
||||
require __DIR__ . '/report.php';
|
||||
|
||||
});
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::group(['prefix' => 'report', 'as' => 'report.', 'namespace' => 'Reports'], function () {
|
||||
Route::get('/customer/{marking}/{from?}/{to?}', 'MonthlyReportController@customerReport')->name('customer');
|
||||
|
||||
Route::get('/sales/{from?}/{to?}', 'MonthlyReportController@salesReport')->name('sales');
|
||||
|
||||
Route::get('/profit/{model}/{value}/{from?}/{to?}', 'MonthlyReportController@profitModelReport')->name('profit');
|
||||
|
||||
Route::get('/service', 'MonthlyReportController@serviceReport')->name('service');
|
||||
});
|
||||
Reference in New Issue
Block a user