Skip to content

Commit

Permalink
fix #341 (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
tao12345666333 authored and typicode committed Aug 30, 2016
1 parent 2c53d62 commit c597a20
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/server/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ module.exports = function (source) {

// GET /db
function showDatabase (req, res, next) {
res.locals.data = db.getState()
next()
res.jsonp(db.getState())
}

router.get('/db', showDatabase)
Expand Down

0 comments on commit c597a20

Please sign in to comment.