routes.tsx 713 B

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