user.routes.js 349 Bytes
Newer Older
Kim, Subin's avatar
Kim, Subin 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
router.route('/signup')
Kim, Subin's avatar
Kim, Subin committed
7
8
    .post(userCtrl.signup)

9
10
router.route('/account/:userId')
    .get(userCtrl.username)
박상호's avatar
박상호 committed
11
12
    .put(userCtrl.imgUpload, userCtrl.update)

13
14
15
16

router.param('userId', userCtrl.userById)


Kim, Subin's avatar
Kim, Subin committed
17
export default router