I'm using superagent
and I faced a problem with dynamic method name.
For every method I shoud write:
request
.get(url)
request
.post(url)
Is there any way to pass method name as parameter to superagent like that done in axios
axios({
method: 'post',
url,
data
});