App.js 1.47 KB
Newer Older
Kim, Chaerin's avatar
Kim, Chaerin committed
1
2
3
4
5
6
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
import "./App.css";
import HomeGuestPage from "./pages/HomeGuestPage";
import HomeUserPage from "./pages/HomeUserPage";
import ProfilePage from "./pages/ProfilePage";
import RoomPage from "./pages/RoomPage";
이재연's avatar
이재연 committed
7
import InfoUpdatePage from "./pages/InfoUpdatePage";
권병윤's avatar
as    
권병윤 committed
8
import InvitePage from "./pages/InvitePage";
seoyeon's avatar
seoyeon committed
9
10
import SingupPage from "./components/SignUp";
import LoginPage from "./components/Login"
Kim, Chaerin's avatar
Kim, Chaerin committed
11
12
13
14
15
16
17

function App() {
  return (
    <Router basename={process.env.PUBLIC_URL}>
      {/* <AuthProvider> */}
      <Switch>
        <Route exact path="/" component={HomeGuestPage} />
우지원's avatar
우지원 committed
18
        <Route exact path="/user/:id" component={HomeUserPage} />
seoyeon's avatar
seoyeon committed
19
20
        <Route exact path="/signup" component={SingupPage} />
        <Route exact path="/login" component={LoginPage} />
이재연's avatar
이재연 committed
21
        <Route path="/profile/:id/update" component={InfoUpdatePage} />
Kim, Chaerin's avatar
Kim, Chaerin committed
22
        <Route path="/profile/:id" component={ProfilePage} />
이재연's avatar
aaa    
이재연 committed
23
24
25
26
27
28
29
30
31
32
33
34
35
        <Route path="/room/:roomId/:channelId" component={RoomPage}>
        {/* <Switch>
          <Route path={"/room/:roomId/meeting"}>
            <></>
          </Route>
          <Route path={"/room/:roomId/normal"}>
            <></>
          </Route>
          <Route path={"/room/:roomId/notice"}>
            <></>
          </Route>
        </Switch> */}
        </Route>
권병윤's avatar
as    
권병윤 committed
36
        <Route path="/room/Invite" component={InvitePage} />
Kim, Chaerin's avatar
Kim, Chaerin committed
37
38
39
40
41
42
43
      </Switch>
      {/* </AuthProvider> */}
    </Router>
  );
}

export default App;