Untitled

mail@pastecode.io avatar
unknown
plain_text
18 days ago
981 B
3
Indexable
Never
import MyPlant from '@/views/Plants/MyPlant.vue';
import ActionCreate from '@/views/Todo/ActionCreate.vue';
import ProfileUser from '@/views/Profile/ProfileUser.vue';
import PlantAdd from '@/views/Plants/PlantAdd.vue';

export const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  linkActiveClass: 'active',
  routes: [
    { path: '/', component: HomeView, meta: { requiresAuth: true } },
    { path: '/about', component: AboutView, meta: { requiresAuth: true } },
    { path: '/login', component: Login, meta: { requiresAuth: false } },
    { path: '/register', component: Register, meta: { requiresAuth: false } },
    { path: '/MyPlant', compenent: MyPlant, meta: {requiresAuth: false } },
    { path: '/ActionCreate', compenent: ActionCreate, meta: {requiresAuth: false } },
    { path: '/ProfileUser', compenent: ProfileUser, meta: {requiresAuth: false } },
    { path: '/PlantAdd', compenent: PlantAdd, meta: {requiresAuth: false } }
  ]
});
Leave a Comment