App.js 658 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/AdminPage";
Jiwon Yoon's avatar
Jiwon Yoon committed
10
11
12

function App() {
  return (
13
14
15
    <Router>
      <Switch>
        <Route exact path="/" component={HomePage} />
Kim, Subin's avatar
Kim, Subin committed
16
        <Route path="/admin" component={AdminPage} />
17
18
      </Switch>
    </Router>
Jiwon Yoon's avatar
Jiwon Yoon committed
19
20
21
22
  );
}

export default App;