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