Update app routing

This commit is contained in:
Hazem Krimi
2021-05-12 01:40:54 +01:00
parent aca15584d4
commit 05d43a3b31
2 changed files with 24 additions and 0 deletions
+16
View File
@@ -21,6 +21,10 @@ import {
Settings,
UserSettings,
CreateUser,
Template,
Feature,
Category,
Prototype,
} from './pages';
import { GetUserByIdQuery, GetUserByIdQueryVariables } from './graphql/types';
import { GET_USER_BY_ID } from './graphql/auth.api';
@@ -87,6 +91,18 @@ const App = () => {
<ProtectedRoute path='/project' exact>
<Project />
</ProtectedRoute>
<ProtectedRoute path='/template' exact>
<Template />
</ProtectedRoute>
<ProtectedRoute path='/feature' exact>
<Feature />
</ProtectedRoute>
<ProtectedRoute path='/category' exact>
<Category />
</ProtectedRoute>
<ProtectedRoute path='/prototype' exact>
<Prototype />
</ProtectedRoute>
<ProtectedRoute path='/clients' exact>
<Users />
</ProtectedRoute>
+8
View File
@@ -4,6 +4,10 @@ import AdditionalInfo from './Auth/AdditionalInfo';
import ForgotPassword from './Auth/ForgotPassword';
import RecoverAccount from './Auth/RecoverAccount';
import Project from './Project';
import Template from './Template';
import Feature from './Feature';
import Category from './Category';
import Prototype from './Prototype';
import Users from './Users';
import CreateUser from './CreateUser';
import Settings from './Settings';
@@ -16,6 +20,10 @@ export {
ForgotPassword,
RecoverAccount,
Project,
Template,
Feature,
Category,
Prototype,
Users,
CreateUser,
Settings,