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

const router = express.Router();

router
한규민's avatar
한규민 committed
7
8
9
    .route("/login")
    .post(userCtrl.login)

한규민's avatar
context    
한규민 committed
10
11
12
13
router
    .route("/logout")
    .get(userCtrl.logout)

한규민's avatar
한규민 committed
14
15
16
17
router
    .route("/signup")
    .post(userCtrl.signup)

한규민's avatar
한규민 committed
18
19
20
21
router
    .route("/:userId")
    .get(userCtrl.compareId)

한규민's avatar
한규민 committed
22
23
24
25
26
27
28
29
router
    .route("/:id/:token")    
    .get(userCtrl.confirmMbnum)

router
    .route("/:iddd")
    .get(userCtrl.getNickName)

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