-
Notifications
You must be signed in to change notification settings - Fork 3
change log v1.1.0
@lyz make edited this page May 8, 2018
·
1 revision
No longer inject axios in resource-axios's src, let you do the work in your project codes, in this way keeping axio isolated and can be up to date.
Before v1.1.0:
import resource from 'resource-axios';
const Book = resource('/api/books');
Since v1.1.0:
import resource from 'resource-axios';
import axios from 'axios';
const Book = resource('/api/books', axios);