App.js 1.28 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";
Kim, Chaerin's avatar
Kim, Chaerin committed
8
9
10
11
import InvitePage from "./pages/InvitePage";
import SingupPage from "./components/SignUp";
import LoginPage from "./components/Login"
import InitRoomPage from "./pages/InitRoomPage";
Kim, Chaerin's avatar
Kim, Chaerin committed
12
13
14
15
16
17
18

function App() {
  return (
    <Router basename={process.env.PUBLIC_URL}>
      {/* <AuthProvider> */}
      <Switch>
        <Route exact path="/" component={HomeGuestPage} />
Kim, Chaerin's avatar
Kim, Chaerin committed
19
20
21
        <Route exact path="/user/:id" component={HomeUserPage} />
        <Route exact path="/signup" component={SingupPage} />
        <Route exact path="/login" component={LoginPage} />
이재연's avatar
이재연 committed
22
        <Route path="/profile/:id/update" component={InfoUpdatePage} />
Kim, Chaerin's avatar
Kim, Chaerin committed
23
        <Route path="/profile/:id" component={ProfilePage} />
24
        <Route path="/room/:roomId/main" component={InitRoomPage} />
Kim, Chaerin's avatar
Kim, Chaerin committed
25
        <Route path="/room/:roomId/:channelId" component={RoomPage} />
Kim, Chaerin's avatar
Kim, Chaerin committed
26
        <Route path="/room/Invite" component={InvitePage} />
Kim, Chaerin's avatar
Kim, Chaerin committed
27
28
29
30
31
32
33
      </Switch>
      {/* </AuthProvider> */}
    </Router>
  );
}

export default App;