internet-programming/lab3/node_modules/json-server/lib/server/router/write.js

8 lines
119 B
JavaScript

"use strict";
module.exports = function write(db) {
return (req, res, next) => {
db.write();
next();
};
};