agraboso / agraboso/redux-api-middleware
Consider to allow Request interface to be used in endpoint
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 1.5k
- Forks
- 190
- PR merge metrics
- No merged PRs in 30d
Description
Now endpoint is only allowing `string` or `function`. Do you think it makes sense to allow [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) interface to be whitelisted as well? Since the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/GlobalFetch/fetch) is accepting both `string` and `Request` object.
https://github.com/agraboso/redux-api-middleware/blob/master/src/validation.js#L107
Contributor guide
Assessment
This issue has not been assessed yet.