Skip to content

Commit c597a20

Browse files
tao12345666333typicode
authored andcommitted
1 parent 2c53d62 commit c597a20

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/server/router/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ module.exports = function (source) {
4444

4545
// GET /db
4646
function showDatabase (req, res, next) {
47-
res.locals.data = db.getState()
48-
next()
47+
res.jsonp(db.getState())
4948
}
5049

5150
router.get('/db', showDatabase)

0 commit comments

Comments
 (0)