user.routes.js 402 Bytes
Newer Older
Lee SeoYeon's avatar
.    
Lee SeoYeon committed
1
import express from "express"
Lee SeoYeon's avatar
..    
Lee SeoYeon committed
2
import userCtrl from '../controllers/user.controller.js'
Lee SeoYeon's avatar
0111    
Lee SeoYeon committed
3
4
5
6
7

const router = express.Router()

router.route('/api/users/signup')
        .post(userCtrl.signup)
Lee SeoYeon's avatar
..    
Lee SeoYeon committed
8
9
10
11
12

router.route('/api/users/bookmark')
        .post(userCtrl.getBookmark)
        // .get(userCtrl.putBookmark)

Lee SeoYeon's avatar
0111    
Lee SeoYeon committed
13
14
router.param('userId', userCtrl.userById)

Lee SeoYeon's avatar
.    
Lee SeoYeon committed
15
// router.route('/api/users/bookmark')
Lee SeoYeon's avatar
.    
Lee SeoYeon committed
16

Lee SeoYeon's avatar
0111    
Lee SeoYeon committed
17
export default router