Added Base Api Endpoint
What I did
- Added Basic Api Model endpoint to be used for model api calls
how to test
- in your code create a Class as follows:
import FetchApi from 'fetch-wrapper'
export class UsersModel extends Api {
api_url = Site.api_url+'accounts/users';
}
- You can now use this as
UsersModel.get(userId).then...