import Home from 'components/Home/home'
import Posts from 'components/Posts/posts'
import Post from 'components/Posts/post'
import Add from 'components/Add/add.vue'
import SearchProject from 'components/SearchProject/search'
import ExploreProject from 'components/ExploreProject/explore'
import NotFound from 'components/NotFound/notFound'

const routes = {
  '/': {
    component: Home
  },
  '/posts': {
    component: Posts
  },
  '/post/:id': {
    name: 'post',
    component: Post
  },
  '/add': {
    component: Add
  },
  '/search': {
    component: SearchProject
  },
  '/explore': {
    component: ExploreProject
  },
  '*': {
    component: NotFound
  }
}

export default routes

import Home from 'components/Home/home'
import Posts from 'components/Posts/posts'
import Post from 'components/Posts/post'
import Add from 'components/Add/add'
import SearchProject from 'components/SearchProject/search'
import ExploreProject from 'components/ExploreProject/explore'
import NotFound from 'components/NotFound/notFound'

const routes = {
  '/': {
    component: Home
  },
  '/posts': {
    component: Posts
  },
  '/post/:id': {
    name: 'post',
    component: Post
  },
  '/add': {
    component: Add
  },
  '/search': {
    component: SearchProject
  },
  '/explore': {
    component: ExploreProject
  },
  '*': {
    component: NotFound
  }
}

export default routes

remove .vue when importing