import { Route } from "react-router-dom"
import Home from "./pages/Home"
import Login from "./pages/Login"
import Register from "./pages/Register"

const AppRoutes = () => (
  <>
    <Route path="/home" component={Home} exact />
    <Route path="/register" component={Register} />
    <Route path="/login" component={Login} />
    <Route exact path="/" render={() => <Home />} />
  </>
)

export default AppRoutes
