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
// Old way : with baseUrlconstw=wretch().baseUrl("http://prefix.com/data")w("/1").get()w("/2").get()// Oops ...w.baseUrl("http://prefix.com/data/subdata")("/1").get()// New way : With a flag ?constw=wretch("http://prefix.com/data")w.url("/1",true).get()w.url("/2",true).get()w.url("/subdata",true).url("/1",true).get()// New way : Or with a new method ?constw=wretch("http://prefix.com/data")w.addUrl("/1").get()w.addUrl("/1").get()w.addUrl("/subdata").addUrl("/1").get()// Or both ?// Or simply make .url append instead of replacing urls ?// My favourite, even if it's a breaking change I feel like it's more intuitive this wayconstw=wretch("http://prefix.com/data")w.url("/1").get()w.url("/2").get()w.url("/subdata").url("/1").get()// With a 'replace' flagw.url("http://test.com/",true)
The text was updated successfully, but these errors were encountered:
Example :
The text was updated successfully, but these errors were encountered: