Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
return middie.use(location);
}
});
Object.getOwnPropertyNames(feathersApp).forEach(prop => {
const feathersProp = Object.getOwnPropertyDescriptor(feathersApp, prop);
const serverProp = Object.getOwnPropertyDescriptor(server, prop);
if (serverProp === undefined && feathersProp !== undefined) {
Object.defineProperty(server, prop, feathersProp);
}
});
server.configure(routing());
server.configure(rest);
return server;
}