Aqui esta el archivo de rutas:
import React from 'react';
import { Route, Redirect, Switch } from 'react-router-dom';
import { ToastContainer } from 'react-toastify';
import Movies from './components/movies';
import MovieForm from './components/movieForm';
import UploadImages from './components/uploadImages';
import Customers from './components/customers';
import Posters from './components/posters';
import NotFound from './components/notFound';
import NavBar from './components/navBar';
import Footer from './components/footer';
import LoginForm from './components/loginForm';
import RegisterForm from './components/registerForm';
import './App.css';
import './assets/css/template.css';
import 'react-toastify/dist/ReactToastify.css';
function App() {
return (
<React.Fragment>
<ToastContainer />
<NavBar />
<main className = "container">
<Switch>
<Route path = "/register" component = {RegisterForm} />
<Route path = "/login" component = {LoginForm} />
<Route path = "/movies/:id" component = {MovieForm} />
<Route path = "/movies" component = {Movies} />
<Route path = "/customers" component = {Customers} />
<Route path = "/images" component = {Posters} />
<Route path = "/images/:id" component = {UploadImages} />
<Route path = "/not-found" component = {NotFound} />
<Redirect from = "/" exact to = "/movies" />
<Redirect to = "not-found" />
</Switch>
</main>
<Footer />
</React.Fragment>
);
}
export default App;