Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default (app, { schema, context }) => {
const openApi = OpenAPI({
schema,
info: {
title: "SpaceX REST API"
}
});
const basePath = "/rest";
app.use(cors());
app.use(
basePath,
sofa({
schema,
context,
onRoute(info) {