2023-02-24 22:11:53 +01:00
|
|
|
import { createRouter, createWebHashHistory } from 'vue-router'
|
2023-02-26 16:49:19 +01:00
|
|
|
import HomePage from './page/HomePage.vue'
|
|
|
|
import AboutPage from './page/AboutPage.vue'
|
2023-01-30 09:01:16 +01:00
|
|
|
|
|
|
|
const routes = [
|
|
|
|
{
|
2023-02-24 22:18:05 +01:00
|
|
|
path: '/',
|
2023-01-30 14:04:01 +01:00
|
|
|
name: 'home',
|
2023-02-26 16:49:19 +01:00
|
|
|
component: HomePage,
|
2023-01-30 09:01:16 +01:00
|
|
|
meta: {
|
2023-01-30 14:04:01 +01:00
|
|
|
title: 'Generator - OG:IMAGE'
|
2023-01-30 09:01:16 +01:00
|
|
|
}
|
|
|
|
},
|
2023-02-24 22:11:53 +01:00
|
|
|
{
|
|
|
|
path: '/about',
|
|
|
|
name: 'About',
|
2023-02-26 16:49:19 +01:00
|
|
|
component: AboutPage,
|
2023-02-24 22:11:53 +01:00
|
|
|
meta: {
|
2023-02-26 17:49:47 +01:00
|
|
|
title: 'About - OG:IMAGE'
|
2023-02-24 22:11:53 +01:00
|
|
|
}
|
|
|
|
},
|
2023-01-30 09:01:16 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
const router = createRouter({
|
2023-02-24 22:11:53 +01:00
|
|
|
history: createWebHashHistory(),
|
2023-01-30 09:01:16 +01:00
|
|
|
routes,
|
|
|
|
});
|
|
|
|
|
|
|
|
export default router;
|