Enhance delay middleware to support dynamic routes (ie. /my-route/:id)
Adding a delay to dynamic routes does not work as expected
delay/index.js middleware has been modified to include a checkRouteParamsPath method that checks if a dynamic route in routes.json matches the current request. The expectation is that if there is a match and a delay value is set on the route, then the route will respect the delay before returning the response.
What:
Enhance delay middleware to support dynamic routes (ie. /my-route/:id)
Adding a delay to dynamic routes does not work as expected
delay/index.js middleware has been modified to include a checkRouteParamsPath method that checks if a dynamic route in routes.json matches the current request. The expectation is that if there is a match and a delay value is set on the route, then the route will respect the delay before returning the response.
Checklist: