availity-ekko
Version:
Mock server simulating Availity API rest services
30 lines (18 loc) • 376 B
JavaScript
'use strict';
const get = require('./get');
const post = require('./post');
const response = {
get: get.send,
delete: get.send,
post: post.send,
put: post.send,
send(req, res, next) {
const method = req.method.toLowerCase();
if (this[method]) {
this[method](req, res, next);
return;
}
next();
}
};
module.exports = response;