Add 404 page
continuous-integration/drone/push Build is failing Details

This commit is contained in:
kolaente 2020-03-02 20:30:49 +01:00
parent c458f902da
commit a4acfb5ef2
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 18 additions and 0 deletions

12
src/components/404.vue Normal file
View File

@ -0,0 +1,12 @@
<template>
<div class="content has-text-centered">
<h1>Not found</h1>
<p>The page you requested does not exist.</p>
</div>
</template>
<script>
export default {
name: '404'
}
</script>

View File

@ -2,6 +2,7 @@ import Vue from 'vue'
import Router from 'vue-router'
import HomeComponent from '@/components/Home'
import NotFoundComponent from '@/components/404'
// User Handling
import LoginComponent from '@/components/user/Login'
import RegisterComponent from '@/components/user/Register'
@ -53,6 +54,11 @@ export default new Router({
name: 'home',
component: HomeComponent
},
{
path: '*',
name: '404',
component: NotFoundComponent,
},
{
path: '/login',
name: 'login',