add params to post route

This commit is contained in:
Ruidy Nemausat 2020-05-20 14:10:25 +02:00
parent 32b336327a
commit 52680f0bdf

View file

@ -31,7 +31,7 @@ const Router: FC = () => (
component={AddExperience}
/>
<PrivateRoute exact path={Routes.ADD_EDUCATION} component={AddEducation} />
<PrivateRoute exact path={Routes.POST} component={PostPage} />
<PrivateRoute exact path={`${Routes.POST}/:id`} component={PostPage} />
<PrivateRoute exact path={Routes.POSTS} component={Posts} />
<Route component={NotFound} />
</Switch>