user.routes.js 259 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
11
router.param('userId', userCtrl.userById)

export default router