2018-06-06 17:01:39 -04:00
|
|
|
import { Redirect, Route, Switch } from 'inferno-router';
|
2018-04-03 14:13:16 -04:00
|
|
|
|
2018-05-03 14:44:48 -04:00
|
|
|
import {
|
|
|
|
CameraAddView,
|
|
|
|
FilmAddView,
|
|
|
|
HomeView,
|
|
|
|
OopsView,
|
2018-05-03 15:23:48 -04:00
|
|
|
} from '//views';
|
2018-04-03 14:13:16 -04:00
|
|
|
|
2018-05-30 09:34:33 -04:00
|
|
|
export const Routes = () => (
|
2018-04-03 14:13:16 -04:00
|
|
|
<Switch>
|
2018-06-06 17:01:39 -04:00
|
|
|
<Route exact path="/" render={() => <Redirect to="/home" />} />
|
|
|
|
<Route exact path="/home" component={HomeView} />
|
2018-05-03 14:44:48 -04:00
|
|
|
<Route path="/camera" component={CameraAddView} />
|
|
|
|
<Route path="/film" component={FilmAddView} />
|
|
|
|
<Route component={OopsView} />
|
2018-04-03 14:13:16 -04:00
|
|
|
</Switch>
|
|
|
|
);
|