1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 17:45:10 +01:00
onion/js/fetchers/ownership_fetcher.js

18 lines
426 B
JavaScript
Raw Normal View History

'use strict';
2015-07-02 11:54:33 +02:00
import requests from '../utils/requests';
2015-06-01 13:02:53 +02:00
import AppConstants from '../constants/application_constants';
let OwnershipFetcher = {
/**
* Fetch one user from the API.
* If no arg is supplied, load the current user
*/
fetchLoanContract(email) {
2015-07-02 11:54:33 +02:00
return requests.get(AppConstants.apiEndpoint + 'ownership/loans/contract/?loanee=' + email);
2015-06-01 13:02:53 +02:00
}
};
export default OwnershipFetcher;