Skip to content
Snippets Groups Projects
Verified Commit 224ccbad authored by Defendi Alberto's avatar Defendi Alberto
Browse files

Include ProfilePage

parent 5407fdb9
No related branches found
No related tags found
1 merge request!33Connect api calls and include test/docs cases
...@@ -6,6 +6,7 @@ import { LandingPage } from 'components/LandingPage/LandingPage'; ...@@ -6,6 +6,7 @@ import { LandingPage } from 'components/LandingPage/LandingPage';
import { PrivateRoute } from 'components/api/PrivateRoute/PrivateRoute'; import { PrivateRoute } from 'components/api/PrivateRoute/PrivateRoute';
import { AuthRoutes, NonAuthRoutes } from 'components/api/routes'; import { AuthRoutes, NonAuthRoutes } from 'components/api/routes';
import { NotFound } from 'components/NotFound/NotFound'; import { NotFound } from 'components/NotFound/NotFound';
import { ProfilePage } from 'components/ProfilePage/ProfilePage';
import { Roles } from 'components/api/userRoles'; import { Roles } from 'components/api/userRoles';
import { Unauthorized } from 'components/Unauthorized/Unauthorized'; import { Unauthorized } from 'components/Unauthorized/Unauthorized';
...@@ -20,6 +21,11 @@ export const App: FC = () => ( ...@@ -20,6 +21,11 @@ export const App: FC = () => (
Component={HomePage} Component={HomePage}
requiredRoles={[Roles.admin, Roles.operator, Roles.senior]} requiredRoles={[Roles.admin, Roles.operator, Roles.senior]}
/> />
<PrivateRoute
path={AuthRoutes.profile}
Component={ProfilePage}
requiredRoles={[Roles.admin, Roles.operator, Roles.senior]}
/>
<Route path={NonAuthRoutes.unauthorized} component={Unauthorized} /> <Route path={NonAuthRoutes.unauthorized} component={Unauthorized} />
<Route component={NotFound} /> <Route component={NotFound} />
</Switch> </Switch>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment