UNPKG

micdrop

Version:

MicroService baseline using Express

16 lines (12 loc) 242 B
const storage = require('memrest')(); module.exports = { getOne: (id, next) => { next(storage.get(id)); }, post: (item, next) => { next(storage.post(item)); }, delete: (id, next) => { next(storage.delete(id)); } };