mirror of
https://github.com/rjNemo/ticket_manager
synced 2026-06-06 00:36:39 +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 />
|
||||
</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 />
|
||||
|
|
|
|||
Loading…
Reference in a new issue