Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return require(paths).handle(
scenario,
request,
response,
variables,
req,
);
}
}
});
next();
});
// Bind the mock middleware to the express server
app.use(apimock.middleware);
// Bind a route so you can modify the running mock server
app.use('/mocking', express.static(devInterface));
// Simple feedback the server is actually running
app.listen(app.get('port'), function() {
console.log('app running on port', app.get('port'));
});