This repository has been archived on 2026-10-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
SnapEdit/frontend/src/router/index.ts
T
2023-03-31 20:15:34 +02:00

35 lines
730 B
TypeScript

import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/:id(\\d*)?',
name: 'home',
component: () => import('../components/Home.vue')
},
{
path: '/gallery',
name: 'gallery',
component: () => import('../components/Gallery.vue')
},
{
path: '/upload',
name: "upload",
component: () => import('../components/Upload.vue')
},
{
path: '/generateImages',
name: "generate",
component: () => import('../components/StableDiff.vue')
},
{
path: '/:pathMatch(.*)*',
name: 'not-found',
component: () => import('../components/NotFound.vue')
}
]
})
export default router