-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Description
As a developer I want to customize api responses or add project specific logic by adding a plugin.
Suggestion:
First enable a configuration file .servemocks.config.js which will be loaded by servemocks,
This could look like this:
import customMiddleware from './foo/bar/custom-middleware'
export default {
middleware: [
{
name: 'custom-middleware',
handler: customMiddleware
}
]
}Servemocks now will be able to execute customMiddleware at some point.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request