mirror of
https://github.com/typicode/json-server.git
synced 2025-07-30 13:42:11 +08:00
@ -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)
|
||||
|
Reference in New Issue
Block a user