user.route.js 462 Bytes
Newer Older
Kim, Chaerin's avatar
Kim, Chaerin committed
1
2
3
4
5
import express from "express";
import userCtrl from "../controllers/user.controller.js";

const router = express.Router();

seoyeon's avatar
.    
seoyeon committed
6
router.route("/getUser").get(userCtrl.getUser);
Kim, Chaerin's avatar
.    
Kim, Chaerin committed
7
router.route("/login").post(userCtrl.login);
Kim, Chaerin's avatar
서버    
Kim, Chaerin committed
8
router.route("/signup").post(userCtrl.signup);
Kim, Chaerin's avatar
Kim, Chaerin committed
9

이재연's avatar
aa    
이재연 committed
10
11
router.route("/profileimg")
    .put(userCtrl.imgUpload, userCtrl.update)
이재연's avatar
오잉    
이재연 committed
12
13
router.route("/updateinfo")
    .put(userCtrl.updateinfo)
이재연's avatar
aa    
이재연 committed
14

seoyeon's avatar
0716    
seoyeon committed
15
router.route("/").post(userCtrl.signup);
Kim, Chaerin's avatar
Kim, Chaerin committed
16
export default router;