@ -10,7 +10,7 @@ function App() {
<Router>
<Login path="/" />
<Search path="/search" />
<Movie path="/movie" />
<Movie path="/movie/:movieId" />
</Router>
);
}
@ -136,8 +136,7 @@ function LoginForm({ showRegister }) {
const data = await response.json();
window.localStorage.setItem("Token", data.token);
alert("Successfully logged in with the token " + data.token);
// TODO:
window.location = "/search";
} catch (e) {
setError(e.message);