Group routes

This commit is contained in:
Marcus Moore 2024-10-22 17:30:34 -07:00
parent c313a78c3c
commit b6aae1f8a9
No known key found for this signature in database

View file

@ -381,11 +381,13 @@ Route::group(['middleware' => ['auth']], function () {
Route::get('reports/custom', [ReportsController::class, 'getCustomReport'])->name('reports/custom');
Route::post('reports/custom', [ReportsController::class, 'postCustom']);
Route::post('reports/templates', [ReportTemplatesController::class, 'store'])->name('report-templates.store');
Route::get('reports/templates/{reportId}', [ReportTemplatesController::class, 'show'])->name('report-templates.show');
Route::get('reports/templates/{reportId}/edit', [ReportTemplatesController::class, 'edit'])->name('report-templates.edit');
Route::post('reports/templates/{reportId}', [ReportTemplatesController::class, 'update'])->name('report-templates.update');
Route::delete('reports/templates/{reportId}', [ReportTemplatesController::class, 'destroy'])->name('report-templates.destroy');
Route::prefix('reports/templates')->name('report-templates')->group(function () {
Route::post('/', [ReportTemplatesController::class, 'store'])->name('.store');
Route::get('/{reportId}', [ReportTemplatesController::class, 'show'])->name('.show');
Route::get('/{reportId}/edit', [ReportTemplatesController::class, 'edit'])->name('.edit');
Route::post('/{reportId}', [ReportTemplatesController::class, 'update'])->name('.update');
Route::delete('/{reportId}', [ReportTemplatesController::class, 'destroy'])->name('.destroy');
});
Route::get(
'reports/activity',