Update app routing

This commit is contained in:
Hazem Krimi
2021-05-30 02:30:52 +01:00
parent 7253107bee
commit ffaf32862e
+11
View File
@@ -27,8 +27,10 @@ import {
Prototype,
AddCategory,
AddFeature,
AddTemplate,
CategorySettings,
FeatureSettings,
TemplateSettings,
} from './pages';
import { GetUserByIdQuery, GetUserByIdQueryVariables } from './graphql/types';
import { GET_USER_BY_ID } from './graphql/auth.api';
@@ -104,6 +106,15 @@ const App = () => {
<ProtectedRoute path='/template/:id' exact>
<Template />
</ProtectedRoute>
<ProtectedRoute path='/add-template' exact>
<AddTemplate />
</ProtectedRoute>
<ProtectedRoute path='/template-settings/:id' exact>
<TemplateSettings />
</ProtectedRoute>
<ProtectedRoute path='/add-template' exact>
<AddTemplate />
</ProtectedRoute>
<ProtectedRoute path='/feature' exact>
<Feature />
</ProtectedRoute>