Add resolver for metrics
Add resolver for metrics
@@ -251,6 +251,17 @@ export default {
},
},
integration: {
+ activity: makeResolver<{ integration: Integration }>(
+ routes.integration.activity,
+ ({ integration }) => ({
+ params: {
+ integrationId: integration.id,
+ },
+ state: {
+ integration,
+ },
+ })
+ ),
details: makeResolver<{ integration: Integration }>(
routes.integration.details,
({ integration }) => ({
@@ -410,8 +421,8 @@ export default {
})
),
},
- activity: makeResolver<{ integration: Integration }>(
- routes.integration.activity,
+ metrics: makeResolver<{ integration: Integration }>(
+ routes.integration.metrics,
({ integration }) => ({
params: {
integrationId: integration.id,
