first commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
|
||||
|
||||
const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: '/my-prizes',
|
||||
name: 'my-prizes',
|
||||
component: () => import('../views/MyPrizesView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/c/:slug',
|
||||
name: 'campaign-wheel-slug',
|
||||
component: () => import('../views/CampaignWheelView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/:slug',
|
||||
name: 'campaign-wheel',
|
||||
component: () => import('../views/CampaignWheelView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
name: 'home',
|
||||
redirect: '/c/default-campaign',
|
||||
},
|
||||
{
|
||||
path: '/:pathMatch(.*)*',
|
||||
redirect: '/',
|
||||
},
|
||||
];
|
||||
|
||||
export const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes,
|
||||
});
|
||||
Reference in New Issue
Block a user