29 lines
590 B
TypeScript
29 lines
590 B
TypeScript
import type { RouteRecordRaw } from 'vue-router'
|
|
import AboutView from './pages/AboutView.vue'
|
|
import ContactView from './pages/ContactView.vue'
|
|
import HomeView from './pages/HomeView.vue'
|
|
import ProductsView from './pages/ProductsView.vue'
|
|
|
|
export const routes: RouteRecordRaw[] = [
|
|
{
|
|
path: '/',
|
|
name: 'home',
|
|
component: HomeView,
|
|
},
|
|
{
|
|
path: '/about',
|
|
name: 'about',
|
|
component: AboutView,
|
|
},
|
|
{
|
|
path: '/products',
|
|
name: 'products',
|
|
component: ProductsView,
|
|
},
|
|
{
|
|
path: '/contact',
|
|
name: 'contact',
|
|
component: ContactView,
|
|
},
|
|
]
|