Skip to content

Commit

Permalink
Merge pull request #427 from range-of-motion/define-routes-for-report…
Browse files Browse the repository at this point in the history
…s-individually-again-instead-of-as-a-resource

Define routes for reports individually again stead of as a resource
  • Loading branch information
range-of-motion authored Oct 16, 2023
2 parents 61bf613 + 152627d commit 43fad13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@

Route::resource('/tags', TagController::class)->only(['index', 'create', 'store', 'edit', 'update', 'destroy']);

Route::resource('/reports', ReportController::class)->only(['index', 'show']);
Route::name('reports.')->group(function () {
Route::get('/reports', [ReportController::class, 'index'])->name('index');
Route::get('/reports/{slug}', [ReportController::class, 'show'])->name('show');
});

Route::name('imports.')->group(function () {
Route::get('/imports', [ImportController::class, 'index'])->name('index');
Expand Down

0 comments on commit 43fad13

Please sign in to comment.