Less debug output

This commit is contained in:
Daniella / Tove 2022-01-23 05:39:36 +01:00
parent ce863e8beb
commit 59aa77238f

View file

@ -29,8 +29,6 @@ server.use(function replacer(req, res, next) {
replace(req, /^\/post\/([0-9]+)_?/g, '/post?id=$1')
replace(req, /^\/comment\/([0-9_]+)\/([0-9_]*)(\?(.*))?/g, '/comment?id=$1&comment=$2&$4')
next()
console.log(JSON.stringify(req.query))
console.log(JSON.stringify(req.body))
})
server.use(require('body-parser').urlencoded({extended: false}))