Skip to content

Commit

Permalink
Added back ability for guest users to see details of global timelines
Browse files Browse the repository at this point in the history
  • Loading branch information
katsulon committed Dec 18, 2024
1 parent 91398c1 commit 8d50376
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion timeliner/routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@

require __DIR__.'/auth.php';

Route::resource('timeline', TimelineController::class)->middleware(['auth', 'verified']);
// Make sure only timeline.show route is accessible by guest users
Route::resource('timeline', TimelineController::class)
->except(['show'])
->middleware(['auth', 'verified']);

Route::get('timeline/{timeline}', [TimelineController::class, 'show'])->name('timeline.show');


Route::post('comment', [CommentController::class, 'store'])->middleware(['auth', 'verified'])->name('comment.store');
Route::delete('comment/{comment}', [CommentController::class, 'destroy'])->middleware(['auth', 'verified'])->name('comment.destroy');
Expand Down

0 comments on commit 8d50376

Please sign in to comment.