mirror of
https://github.com/Dannecron/ich-lerne-deutsch.git
synced 2025-12-25 21:02:35 +03:00
Initial commit. Add application skeleton
This commit is contained in:
41
src/router.js
Normal file
41
src/router.js
Normal file
@@ -0,0 +1,41 @@
|
||||
import Vue from 'vue';
|
||||
import Router from 'vue-router';
|
||||
import Home from '@/views/Home';
|
||||
|
||||
Vue.use(Router);
|
||||
|
||||
export default new Router({
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
name: 'home',
|
||||
component: Home
|
||||
},
|
||||
{
|
||||
path: '/articles',
|
||||
name: 'articles',
|
||||
component: () => import(/* webpackChunkName: "articles" */ '@/views/Articles.vue'),
|
||||
},
|
||||
{
|
||||
path: '/words',
|
||||
name: 'words',
|
||||
component: () => import(/* webpackChunkName: "words" */ '@/views/Words.vue'),
|
||||
},
|
||||
{
|
||||
path: '/profile',
|
||||
name: 'profile',
|
||||
component: () => import(/* webpackChunkName: "words" */ '@/views/Profile.vue'),
|
||||
},
|
||||
{
|
||||
path: '/sign_in',
|
||||
name: 'signIn',
|
||||
component: () => import(/* webpackChunkName: "sign_in" */ '@/views/SignIn.vue'),
|
||||
},
|
||||
{
|
||||
path: '/sign_up',
|
||||
name: 'signUp',
|
||||
component: () => import(/* webpackChunkName: "sign_up" */ '@/views/SignUp.vue'),
|
||||
},
|
||||
],
|
||||
mode: 'history',
|
||||
});
|
||||
Reference in New Issue
Block a user