44 lines
824 B
JavaScript
44 lines
824 B
JavaScript
|
import Router from 'vue-router'
|
||
|
import LoginForm from '@/components/login'
|
||
|
import Quotes from "@/components/quotes";
|
||
|
import Pages from "@/components/pages";
|
||
|
import PagesEdit from "@/components/PagesEdit";
|
||
|
import ProjectsList from "@/components/ProjectsList";
|
||
|
import Profile from "@/components/profile";
|
||
|
import NotFound from "@/components/NotFound"
|
||
|
|
||
|
export default new Router({
|
||
|
mode: 'history',
|
||
|
routes: [
|
||
|
{
|
||
|
path: '/',
|
||
|
name: 'Home',
|
||
|
component: Quotes
|
||
|
},
|
||
|
{
|
||
|
path: '/form_login',
|
||
|
name: 'LoginForm',
|
||
|
component: LoginForm,
|
||
|
},
|
||
|
{
|
||
|
path: '/projects',
|
||
|
component: ProjectsList
|
||
|
},
|
||
|
{
|
||
|
path: '/pages/:slug',
|
||
|
component: Pages
|
||
|
},
|
||
|
{
|
||
|
path: '/pages/edit/:slug',
|
||
|
component: PagesEdit
|
||
|
},
|
||
|
{
|
||
|
path: '/profile',
|
||
|
component: Profile
|
||
|
},
|
||
|
{
|
||
|
path: '*',
|
||
|
component: NotFound
|
||
|
}
|
||
|
]
|
||
|
})
|