user.routes.js 299 Bytes
Newer Older
Lee SeoYeon's avatar
.    
Lee SeoYeon committed
1
2
import express from "express"
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
        
Lee SeoYeon's avatar
0111    
Lee SeoYeon committed
9
10
router.param('userId', userCtrl.userById)

Lee SeoYeon's avatar
.    
Lee SeoYeon committed
11
// router.route('/api/users/bookmark')
Lee SeoYeon's avatar
.    
Lee SeoYeon committed
12

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