Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript client proxy #8

Merged
merged 4 commits into from May 6, 2020
Merged

Javascript client proxy #8

merged 4 commits into from May 6, 2020

Conversation

Frenchcooc
Copy link
Contributor

@Frenchcooc Frenchcooc commented May 5, 2020

TL;DR

Introducing the proxy methods (.get(); .post(), etc.) on the JS client.

Migration guide

The new methods points to /proxy/:integration whereas the previous methods pointed to /api/v4/functions/:integration/bearer-proxy. This path is still supported as legacy.

Also we use window.fetch here, whereas the previous Bearer-js was using Axios. This might definetely break things. Depending on how much it breaks, we might want to reintroduce axios. But for now this is good enough to continue with fetch.

@Frenchcooc Frenchcooc requested a review from cfabianski May 5, 2020 09:54
@Frenchcooc Frenchcooc merged commit 5255eab into master May 6, 2020
@Frenchcooc Frenchcooc deleted the javascript-client-proxy branch May 6, 2020 07:17
lgo pushed a commit to lgo/Pizzly that referenced this pull request Jul 18, 2021
bodinsamuel added a commit that referenced this pull request Mar 20, 2024
bodinsamuel added a commit that referenced this pull request Mar 20, 2024
## Describe your changes

- Run only automated fix `npx eslint --fix`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant