Files
automatisch/packages/web/src/routes.tsx
2021-10-20 21:01:48 +02:00

35 lines
699 B
TypeScript

import { Route, Switch, Redirect } from "react-router";
import Applications from 'pages/Applications';
import Application from 'pages/Application';
import Flows from 'pages/Flows';
import Explore from 'pages/Explore';
import * as URLS from 'config/urls';
export default (
<Switch>
<Route path={URLS.FLOWS}>
<Flows />
</Route>
<Route path={[URLS.APPS, URLS.NEW_APP_CONNECTION]}>
<Applications />
</Route>
<Route path={URLS.EXPLORE}>
<Explore />
</Route>
<Route path={URLS.APP_PATTERN}>
<Application />
</Route>
<Route exact path="/">
<Redirect to={URLS.FLOWS} />
</Route>
<Route>
404
</Route>
</Switch>
);