mirror of
https://github.com/typicode/json-server.git
synced 2025-07-29 21:23:41 +08:00
Remove duplication
Remove duplication of // Expose database router.db = db
This commit is contained in:
@ -37,9 +37,6 @@ module.exports = function (source) {
|
||||
// Expose database
|
||||
router.db = db
|
||||
|
||||
// Expose database
|
||||
router.db = db
|
||||
|
||||
// Expose render
|
||||
router.render = function (req, res) {
|
||||
res.jsonp(res.locals.data)
|
||||
|
Reference in New Issue
Block a user