text: import Vue from"vue";import VueRouter from"vue-router";import Home from"./components/pages/Home";import Blog from"./components/pages/Blog";import about from"./components/pages/About";import contact from"./components/pages/Contact";import BlogPost from"./components/pages/Viewpost";import AddPost from"./components/pages/AddPost";import EditPost from"./components/pages/EditPost";import Login from"./components/pages/Login";Vue.use(VueRouter);const router=new VueRouter({routes:[{path:"/",name:"home",meta:{requiresAuth:!0},component:Home},{path:"/blog",name:"blog",meta:{requiresAuth:!0},component:Blog},{path:"/about-us",name:"about",meta:{requiresAuth:!0},component:about},{path:"/contact-us",name:"contact",meta:{requiresAuth:!0},component:contact},{path:"/add-post",name:"addpost",meta:{requiresAuth:!0},component:AddPost},{path:"/edit-post/:id",name:"editpost",meta:{requiresAuth:!0},component:EditPost,props:!0},{path:"/blog/:id",name:"viewpost",meta:{requiresAuth:!0},component:BlogPost,props:!0},{path:"/login",name:"login",component:Login},{path:"/home",redirect:{name:"home"}}]});export default router;