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