Roughing out the demo app
This commit is contained in:
8
node_modules/json-server/lib/server/router/write.js
generated
vendored
Normal file
8
node_modules/json-server/lib/server/router/write.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function write(db) {
|
||||
return (req, res, next) => {
|
||||
db.write();
|
||||
next();
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user