user.routes.js 386 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
01_06    
우지원 committed
7
router.route('/users/signup')
우지원's avatar
우지원 committed
8
9
    .post(userCtrl.signup)
    .get(userCtrl.hello)
10

JeongYeonwoo's avatar
JeongYeonwoo committed
11
12
13
router.route(`/users/:userId`)
    .post(userCtrl.logineduser)
    .put(userCtrl.changenick)
JeongYeonwoo's avatar
   
JeongYeonwoo committed
14
15


우지원's avatar
우지원 committed
16
export default router