mirror of
https://github.com/rjNemo/ticket_manager
synced 2026-06-12 11:46:40 +00:00
apply PrivateRoute to user, ticket and project pages
This commit is contained in:
parent
447d52e490
commit
688e7d65b4
1 changed files with 3 additions and 9 deletions
|
|
@ -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 />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue