App.js 704 Bytes
Newer Older
1
2
3
4
5
6
7
8
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
import HomePage from "./pages/HomePage";
import LoginPage from "./pages/LoginPage";
import SignupPage from "./pages/SignupPage";
import MovieListPage from "./pages/MovieListPage";
import MoviePage from "./pages/MoviePage";
import TheaterPage from "./pages/TheaterPage";
import MyPage from "./pages/MyPage";
Kim, Subin's avatar
Kim, Subin committed
9
import AdminPage from "./pages/AdminPage";
Jiwon Yoon's avatar
Jiwon Yoon committed
10
11
12

function App() {
  return (
13
14
15
    <Router>
      <Switch>
        <Route exact path="/" component={HomePage} />
한규민's avatar
login    
한규민 committed
16
        <Route path="/login" component={LoginPage} />
한규민's avatar
한규민 committed
17
        <Route path="/signup" component={SignupPage} />
18
19
      </Switch>
    </Router>
Jiwon Yoon's avatar
Jiwon Yoon committed
20
21
22
23
  );
}

export default App;