user.route.js 808 Bytes
Newer Older
한규민's avatar
한규민 committed
1
2
3
4
5
import express from "express";
import userCtrl from "../controllers/user.controller.js";

const router = express.Router();

한규민's avatar
한규민 committed
6
7
8
9
router
    .route("/user")
    .get(userCtrl.getUser)

한규민's avatar
한규민 committed
10
router
한규민's avatar
한규민 committed
11
12
13
    .route("/login")
    .post(userCtrl.login)

한규민's avatar
context    
한규민 committed
14
15
16
17
router
    .route("/logout")
    .get(userCtrl.logout)

한규민's avatar
한규민 committed
18
19
20
21
router
    .route("/signup")
    .post(userCtrl.signup)

Jiwon Yoon's avatar
Jiwon Yoon committed
22

한규민's avatar
한규민 committed
23
24
25
26
27
28
29
30
router
    .route("/modify")
    .post(userCtrl.modifyUser)

router
    .route("/nickname/:id")
    .get(userCtrl.getNickName)

한규민's avatar
한규민 committed
31
32
33
34
router
    .route("/pw/:pw")
    .get(userCtrl.comparePw)

한규민's avatar
한규민 committed
35
36
37
38
router
    .route("/:userId")
    .get(userCtrl.compareId)

한규민's avatar
한규민 committed
39
router
40
    .route("/:id/:token")
한규민's avatar
한규민 committed
41
42
    .get(userCtrl.confirmMbnum)

43
44
router.route('/getuserinfo')
    .post(userCtrl.getUserInfo)
한규민's avatar
한규민 committed
45

Jiwon Yoon's avatar
Jiwon Yoon committed
46
47
48
router.route('/guest/save')
    .post(userCtrl.saveGuestInfo)

한규민's avatar
한규민 committed
49
export default router;