1.0.0
Breaking changes
- Methods
setConfig
,clearConfig
,getConfig
have been removed.
❌ Before
dame.setConfig("default", "baseUrl", "https://yourapi.com");
dame.setConfig("default", "headers", {
Authorization: "Bearer a4jkl.q345a.a45a.a45"
});
✅ After
const yourApi = dame.new({
baseUrl: "https://yourapi.com",
headers: {
Authorization: "Bearer a4jkl.q345a.a45a.a45"
}
});
- The parameter
configGroup
on get, post, put, delete, patch methods has been removed.