agraboso / agraboso/redux-api-middleware

Consider to allow Request interface to be used in endpoint

Open
#73 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.