1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 18:13:49 +01:00
onion/js/fetchers/ownership_fetcher.js

18 lines
391 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
2015-07-15 14:48:51 +02:00
import ApiUrls from '../constants/api_urls';
2015-06-01 13:02:53 +02:00
let OwnershipFetcher = {
/**
* Fetch one user from the API.
* If no arg is supplied, load the current user
*/
fetchLoanContract(email) {
2015-07-15 14:48:51 +02:00
return requests.get(ApiUrls.ownership_loans_contract + '?loanee=' + email);
2015-06-01 13:02:53 +02:00
}
};
export default OwnershipFetcher;