mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-08 21:44:32 +02:00
Redirect all unexpected url to 404 view
This commit is contained in:
14
resources/js/app.js
vendored
14
resources/js/app.js
vendored
@ -48,6 +48,12 @@ const router = new VueRouter({
|
||||
name: 'edit',
|
||||
component: Edit,
|
||||
},
|
||||
{
|
||||
path: '/error',
|
||||
name: 'GenericError',
|
||||
component: NotFound,
|
||||
props: true
|
||||
},
|
||||
{
|
||||
path: '/404',
|
||||
name: '404',
|
||||
@ -55,11 +61,9 @@ const router = new VueRouter({
|
||||
props: true
|
||||
},
|
||||
{
|
||||
path: '/error',
|
||||
name: 'GenericError',
|
||||
component: NotFound,
|
||||
props: true
|
||||
},
|
||||
path: '*',
|
||||
redirect: { name: '404' }
|
||||
}
|
||||
],
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user