Skip to content

Commit

Permalink
add redirect in index
Browse files Browse the repository at this point in the history
  • Loading branch information
eucyt committed May 13, 2023
1 parent 7fc1d92 commit e4f1220
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions laravel/routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
|
*/

Route::get('/', function () {
return view('welcome');
});

Route::resource('papers', PaperController::class);
Route::delete('/papers/{id}', [PaperController::class, 'unregisterPdf'])->name('papers.unregisterPdf');

Route::redirect('/', route('papers.index'));

0 comments on commit e4f1220

Please sign in to comment.