We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, I wonder if params are really always required for GET requests, maybe it would bw possible to make them optional so one can write like
api.get('/foo'); //instead of api.get('/foo', {});
https://github.com/yandex-cloud/axios-wrapper/blob/e041fbcb410dcf72349709acec673e04a8919765/src/index.ts#L210
if it is possible the similar change would be awesome for others methods
The text was updated successfully, but these errors were encountered:
fix: make params an optional argument in requests
params
1c3fa89
This will allow to not invoke, e.g. `api.get('/foo', {})`, when one can simply invoke `api.get('/foo')`. Closes #7.
Successfully merging a pull request may close this issue.
Hello, I wonder if params are really always required for GET requests, maybe it would bw possible to make them optional so one can write like
https://github.com/yandex-cloud/axios-wrapper/blob/e041fbcb410dcf72349709acec673e04a8919765/src/index.ts#L210
if it is possible the similar change would be awesome for others methods
The text was updated successfully, but these errors were encountered: