Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const errors = require('@feathersjs/errors');
const { omit } = require('@feathersjs/commons')._;
const debug = require('debug')('@feathersjs/express/rest');
const statusCodes = {
created: 201,
noContent: 204,
methodNotAllowed: 405
};
const methodMap = {
find: 'GET',
get: 'GET',
create: 'POST',
update: 'PUT',
patch: 'PATCH',
remove: 'DELETE'
};