2024-11-16 11:40:53 -05:00
|
|
|
import { createRouter, createWebHistory } from 'vue-router'
|
2024-11-16 15:08:09 -05:00
|
|
|
import AboutView from '../views/AboutView.vue'
|
2024-11-21 19:34:28 -05:00
|
|
|
import HomeView from '../views/HomeView.vue'
|
2024-11-24 20:50:39 -05:00
|
|
|
import LoginView from '../views/LoginView.vue'
|
2024-11-21 19:34:28 -05:00
|
|
|
import ProfileView from '../views/ProfileView.vue'
|
2024-11-24 22:07:09 -05:00
|
|
|
import StickerBuilderView from '../views/StickerBuilderView.vue'
|
2024-11-16 11:40:53 -05:00
|
|
|
|
|
|
|
|
const router = createRouter({
|
|
|
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
|
|
|
routes: [
|
|
|
|
|
{
|
|
|
|
|
component: HomeView,
|
2024-11-17 22:21:56 -05:00
|
|
|
meta: {
|
|
|
|
|
title: 'Home',
|
|
|
|
|
},
|
|
|
|
|
name: 'home',
|
|
|
|
|
path: '/',
|
2024-11-16 11:40:53 -05:00
|
|
|
},
|
2024-11-21 19:34:28 -05:00
|
|
|
{
|
|
|
|
|
component: ProfileView,
|
|
|
|
|
meta: {
|
|
|
|
|
title: 'Profile',
|
|
|
|
|
},
|
|
|
|
|
name: 'profile',
|
|
|
|
|
path: '/:uuid([0-9A-F]{8}-[0-9A-F]{4}-[4][0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12})',
|
|
|
|
|
},
|
2024-11-16 11:40:53 -05:00
|
|
|
{
|
2024-11-16 15:08:09 -05:00
|
|
|
component: AboutView,
|
2024-11-17 22:21:56 -05:00
|
|
|
meta: {
|
|
|
|
|
title: 'About',
|
|
|
|
|
},
|
|
|
|
|
name: 'about',
|
|
|
|
|
path: '/about',
|
2024-11-16 11:40:53 -05:00
|
|
|
},
|
2024-11-16 23:04:02 -05:00
|
|
|
{
|
2024-11-24 22:07:09 -05:00
|
|
|
component: StickerBuilderView,
|
2024-11-17 22:21:56 -05:00
|
|
|
meta: {
|
2024-11-24 22:07:09 -05:00
|
|
|
title: 'Sticker Builder',
|
2024-11-17 22:21:56 -05:00
|
|
|
},
|
2024-11-24 22:07:09 -05:00
|
|
|
name: 'stickerbuilder',
|
|
|
|
|
path: '/stickerbuilder',
|
2024-11-16 23:04:02 -05:00
|
|
|
},
|
2024-11-24 20:50:39 -05:00
|
|
|
{
|
|
|
|
|
component: LoginView,
|
|
|
|
|
meta: {
|
|
|
|
|
title: 'Login',
|
|
|
|
|
},
|
|
|
|
|
name: 'login',
|
|
|
|
|
path: '/login',
|
|
|
|
|
},
|
2024-11-16 11:40:53 -05:00
|
|
|
],
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
export default router
|