import Home from '../pages/home/index.jsx'
import Upload from '../pages/upload/index.jsx'
import Preview from '../pages/preview/index.jsx'
import { Navigate } from 'react-router-dom'

let routes = [
  {
    path: '/',
    element: <Navigate to="/upload" />
  },{
    path: '/home',
    element: <Home />
  },
  {
    path: '/upload',
    element: <Upload />
  },
  {
    path: '/preview',
    element: <Preview />
  }
]

export default routes