1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 09:50:31 +01:00
onion/js/fetchers/ownership_fetcher.js
2015-07-15 14:48:51 +02:00

18 lines
391 B
JavaScript

'use strict';
import requests from '../utils/requests';
import ApiUrls from '../constants/api_urls';
let OwnershipFetcher = {
/**
* Fetch one user from the API.
* If no arg is supplied, load the current user
*/
fetchLoanContract(email) {
return requests.get(ApiUrls.ownership_loans_contract + '?loanee=' + email);
}
};
export default OwnershipFetcher;