This commit is contained in:
TaoBeier
2016-08-30 23:21:14 +08:00
committed by typicode
parent 2c53d62860
commit c597a20276

View File

@ -44,8 +44,7 @@ module.exports = function (source) {
// GET /db // GET /db
function showDatabase (req, res, next) { function showDatabase (req, res, next) {
res.locals.data = db.getState() res.jsonp(db.getState())
next()
} }
router.get('/db', showDatabase) router.get('/db', showDatabase)