diff --git a/pairent_frontend_react/src/components/AppRouter/AppRouter.jsx b/pairent_frontend_react/src/components/AppRouter/AppRouter.jsx index 220a7f8..e0f86dd 100644 --- a/pairent_frontend_react/src/components/AppRouter/AppRouter.jsx +++ b/pairent_frontend_react/src/components/AppRouter/AppRouter.jsx @@ -1,6 +1,8 @@ import React from 'react'; import {Navigate, Route, Routes} from "react-router-dom"; -import {privateRoutes, publicRoutes} from "../../router/index"; +import routes from "../../router"; + +const { publicRoutes } = routes; const AppRouter = () => { return ( diff --git a/pairent_frontend_react/src/router/index.js b/pairent_frontend_react/src/router/index.jsx similarity index 57% rename from pairent_frontend_react/src/router/index.js rename to pairent_frontend_react/src/router/index.jsx index 21f9262..3b65827 100644 --- a/pairent_frontend_react/src/router/index.js +++ b/pairent_frontend_react/src/router/index.jsx @@ -7,8 +7,11 @@ import Comparisons from "../pages/Сomparisons/Сomparisons"; // {path: '/comparisons', component: Comparisons, exact: true}, // ] -export const publicRoutes = [ - {path: '/', component: , exact: true}, - {path: '/favorites', component: , exact: true}, - {path: '/comparisons', component: , exact: true}, -] \ No newline at end of file +export default Object.freeze({ + publicRoutes: [ + {path: '/', component: , exact: true}, + {path: '/favorites', component: , exact: true}, + {path: '/comparisons', component: , exact: true}, + ], + privateRoutes: [] +}) \ No newline at end of file