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 />
</Route>
<Route path="/users/:id">
<UserController />
</Route>
<PrivateRoute path="/projects/:id" component={ProjectController} />
<Route path="/projects/:id">
<ProjectController />
</Route>
<PrivateRoute path="/tickets/:id" component={TicketController} />
<Route path="/tickets/:id">
<TicketController />
</Route>
<PrivateRoute path="/users/:id" component={UserController} />
<Route path="/404">
<NotFoundPage />