mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 22:07:29 -08:00
Group routes
This commit is contained in:
parent
c313a78c3c
commit
b6aae1f8a9
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue