api-stub
api-stub copied to clipboard
added support for default and per endpoint headers
This is a very nice little library for quickly stubbing endpoints, however I was running into CORS issues, so I needed header support.
This PR allows you to pass in the config as an array, or as an object, which contains the default headers, and the endpoints.
I have also added support for headers per endpoint.