console logs
This commit is contained in:
@@ -63,7 +63,8 @@ router.post('/servers/:serverId/kill', (req, res, next) => {
|
|||||||
router.post(
|
router.post(
|
||||||
'/servers/:serverId/kill',
|
'/servers/:serverId/kill',
|
||||||
(req, res, next) => {
|
(req, res, next) => {
|
||||||
console.log(req.body())
|
console.log('recieved a message')
|
||||||
|
console.log(JSON.stringify(req.body()))
|
||||||
next()
|
next()
|
||||||
},
|
},
|
||||||
body([
|
body([
|
||||||
@@ -121,7 +122,7 @@ router.post(
|
|||||||
(req, res) => {
|
(req, res) => {
|
||||||
const errors = validationResult(req)
|
const errors = validationResult(req)
|
||||||
if (!errors.isEmpty()) {
|
if (!errors.isEmpty()) {
|
||||||
console.log(JSON.stringify(errors))
|
console.error(JSON.stringify(errors))
|
||||||
return res.status(400).json({ errors: errors.array() })
|
return res.status(400).json({ errors: errors.array() })
|
||||||
}
|
}
|
||||||
const {
|
const {
|
||||||
|
|||||||
Reference in New Issue
Block a user