13 lines
355 B
JavaScript
13 lines
355 B
JavaScript
|
var express = require('express')
|
||
|
const dto = require('../middlewares/ValidateDto')
|
||
|
const { PostAdminMemberDto } = require('../dto/admin')
|
||
|
var router = express.Router()
|
||
|
|
||
|
router.post('/member', dto(PostAdminMemberDto,'body'),async function (req, res) {
|
||
|
console.log(req.body)
|
||
|
res.send({ message:'Add Admin Member Success' })
|
||
|
|
||
|
})
|
||
|
|
||
|
module.exports = router
|