2022-02-07 23:22:35 +01:00
|
|
|
import { Route, Switch } from 'react-router-dom';
|
2022-02-06 20:56:48 +01:00
|
|
|
import './index.css';
|
2022-02-07 23:22:35 +01:00
|
|
|
import { MovieView } from './views/MovieView';
|
|
|
|
import { SearchView } from './views/SearchView';
|
|
|
|
import { SeriesView } from './views/SeriesView';
|
2022-02-06 20:56:48 +01:00
|
|
|
|
|
|
|
function App() {
|
|
|
|
return (
|
2022-02-07 23:22:35 +01:00
|
|
|
<Switch>
|
|
|
|
<Route exact path="/" component={SearchView} />
|
|
|
|
<Route exact path="/media/movie" component={MovieView} />
|
|
|
|
<Route exact path="/media/series" component={SeriesView} />
|
|
|
|
</Switch>
|
2022-02-06 20:56:48 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|