apply PrivateRoute to user, ticket and project pages

This commit is contained in:
Ruidy Nemausat 2020-04-19 12:06:47 +02:00
parent 447d52e490
commit 688e7d65b4

View file

@ -17,17 +17,11 @@ const AppRouter = () => {
<HomeController /> <HomeController />
</Route> </Route>
<Route path="/users/:id"> <PrivateRoute path="/projects/:id" component={ProjectController} />
<UserController />
</Route>
<Route path="/projects/:id"> <PrivateRoute path="/tickets/:id" component={TicketController} />
<ProjectController />
</Route>
<Route path="/tickets/:id"> <PrivateRoute path="/users/:id" component={UserController} />
<TicketController />
</Route>
<Route path="/404"> <Route path="/404">
<NotFoundPage /> <NotFoundPage />