Move folder

This commit is contained in:
dragongoose
2023-03-24 07:55:10 -04:00
parent 6265fa182b
commit 1e9726a601
29 changed files with 86 additions and 121 deletions

32
src/router/index.ts Normal file
View File

@ -0,0 +1,32 @@
import { createRouter, createWebHistory } from 'vue-router'
import UserView from '../views/UserView.vue'
import PageNotFound from '../views/PageNotFound.vue'
import PrivacyPageView from '../views/PrivacyPageView.vue'
import HomepageView from '../views/HomepageView.vue'
import CategoryView from '../views/CategoryView.vue'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
component: HomepageView
},
{
path:'/game/:game',
component: CategoryView
},
{
path: '/privacy',
name: 'about',
component: PrivacyPageView
},
{
path: '/:username',
component: UserView
},
{ path: '/:pathMatch(.*)*', component: PageNotFound }
]
})
export default router