import {createBrowserRouter, Navigate} from "react-router-dom";
import List from "../components/List";

export const router = createBrowserRouter([
  {
    path: "/",
    element: <Navigate to="/photos" replace />,
  },
  {
    path: "/photos",
    element: <List />,
  },
  {
    path: "/photos/:id",
    element: <List />
  }
]);