changes

parent 31f5d478
......@@ -4,6 +4,7 @@ import Layout from './components/Layout';
import HomePage from './containers/HomePage';
import Login from './containers/Login';
import CreatePost from './components/CreatePost/CreatePost';
import DetailsPost from './containers/DetailsPost/DetailsPost';
const App: React.FunctionComponent = (): React.ReactElement => {
return (
......@@ -12,6 +13,7 @@ const App: React.FunctionComponent = (): React.ReactElement => {
<Route path="/" element={<Layout />}>
<Route index element={<HomePage />} />
<Route path="register" element={<Login />} />
<Route path="/posts/:id" element={<DetailsPost />} />
<Route path="create" element={<CreatePost />} />
</Route>
</Routes>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment