Skip to content

Commit

Permalink
added default overrider
Browse files Browse the repository at this point in the history
  • Loading branch information
anubhavsrivastava committed Apr 4, 2019
1 parent dabdfe9 commit f6779aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ export default function responseDataUnpacker(axiosConfig) {

return axiosConfig;
}

export function axiosResponseDataUnpacker(axios) {
axios.interceptors.response.use(responseDataUnpacker);
}

0 comments on commit f6779aa

Please sign in to comment.