You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering whether it would be possible to set the defaults based on the endpoints that are called? Something like:
// Setup some defaults per endointsuperagent.set('my-default-header','my-default-value').auth('myUsername','myPassword');// Pseudoif(url=='/admin'){superagent// overwrite default username and password.auth('admin','someAdminPassword');}
The text was updated successfully, but these errors were encountered:
I was wondering whether it would be possible to set the defaults based on the endpoints that are called? Something like:
The text was updated successfully, but these errors were encountered: