Skip to content

Commit 3f5eeef

Browse files
committed
Add 404 handling
1 parent e5e5675 commit 3f5eeef

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

coreui/src/router/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,11 @@ function configRoutes () {
383383
component: Register
384384
},
385385
]
386+
},
387+
{
388+
path: '*',
389+
name: '404',
390+
component: Page404
386391
}
387392
]
388393
}

laravel/routes/web.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
|
1212
*/
1313

14-
Route::get('/', function () {
14+
Route::get('/{any}', function () {
1515
return view('coreui.homepage');
16-
});
16+
})->where('any', '.*');
1717

1818
//Auth::routes();
1919
//Route::get('/home', 'HomeController@index')->name('home');

0 commit comments

Comments
 (0)