routes.tsx 746 B

123456789101112131415161718192021
  1. import {IndexRoute, Route} from 'sentry/components/route';
  2. import {makeLazyloadComponent as make} from 'sentry/routes';
  3. export const automationRoutes = (
  4. <Route path="/automations/" withOrgPath>
  5. <IndexRoute component={make(() => import('sentry/views/automations/list'))} />
  6. <Route path="new/" component={make(() => import('sentry/views/automations/new'))} />
  7. <Route
  8. path="new/settings/"
  9. component={make(() => import('sentry/views/automations/new-settings'))}
  10. />
  11. <Route
  12. path=":automationId/"
  13. component={make(() => import('sentry/views/automations/detail'))}
  14. />
  15. <Route
  16. path=":automationId/edit/"
  17. component={make(() => import('sentry/views/automations/edit'))}
  18. />
  19. </Route>
  20. );