-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
60 lines (57 loc) · 2.39 KB
/
App.js
File metadata and controls
60 lines (57 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import { Routes, Route } from "react-router-dom";
import { Helmet } from "react-helmet-async";
/* 컴포넌트 */
import Login from "./pages/Login/Login";
import FindPassword from "./pages/FindPassword";
import Main from "./pages/Main";
import Write from "./pages/Write";
import Modify from "./pages/Modify";
import MyProfile from "./pages/MyProfile";
import SignUp from "./pages/SignUp/SignUp";
import SocialSignUp from "./pages/SignUp/SocialSignUp";
import Search from "./pages/Search";
import SearchDetail from "./pages/SearchDetail";
import Chat from "./pages/Chat";
import PaperDetail from "./pages/PaperDetail";
import Reservation from "./pages/Reservation";
import ReservationList from "./pages/ReservationList";
import Paper from "./pages/Paper";
import Kakao from "./pages/Login/Kakao";
import Google from "./pages/Login/Google";
import Naver from "./pages/Login/Naver";
import AllPaper from "./pages/AllPaper";
function App() {
return (
<>
<Helmet>
<title>PAPER</title>
</Helmet>
<Routes>
<Route path="/" element={<Main />} />
<Route path="/signup" element={<SignUp />} />
<Route path="/socialsignup" element={<SocialSignUp />} />
<Route path="/login" element={<Login />} />
<Route path="/findpassword" element={<FindPassword />} />
<Route path="/user/login/kakao/callback" element={<Kakao />} />
<Route path="/user/login/google/callback" element={<Google />} />
<Route path="/user/login/naver/callback" element={<Naver />} />
<Route path="/write" element={<Write />} />
<Route path="/modify/:blogId/:postId" element={<Modify />} />
<Route path="/paper/:blogId" element={<Paper />} />
<Route path="/paper/:blogId/:postId" element={<PaperDetail />} />
<Route path="/paper/search/" element={<Search />} />
<Route path="/paper/search/:payload" element={<SearchDetail />} />
<Route path="/myprofile" element={<MyProfile />} />
<Route path="/chat/:hostId/:guestId" element={<Chat />} />
<Route path="/paper/:blogId/reservation" element={<Reservation />} />
<Route path="/paper/allpapers" element={<AllPaper />} />
<Route
path="/paper/:blogId/reservationList"
element={<ReservationList />}
/>
<Route path="/*" element={<h1>존재하지 않는 페이지입니다.</h1>} />
</Routes>
</>
);
}
export default App;