Client - add a workout + fix

This commit is contained in:
Sam
2021-09-29 11:32:05 +02:00
parent 991a7acc03
commit 6bfcb24133
14 changed files with 515 additions and 74 deletions

View File

@ -2,6 +2,7 @@ import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import store from '@/store'
import { USER_STORE } from '@/store/constants'
import AddWorkout from '@/views/AddWorkout.vue'
import Dashboard from '@/views/DashBoard.vue'
import EditWorkout from '@/views/EditWorkout.vue'
import LoginOrRegister from '@/views/LoginOrRegister.vue'
@ -43,6 +44,11 @@ const routes: Array<RouteRecordRaw> = [
component: Workout,
props: { displaySegment: true },
},
{
path: '/workouts/add',
name: 'AddWorkout',
component: AddWorkout,
},
{ path: '/:pathMatch(.*)*', name: 'not-found', component: NotFoundView },
]