mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
18 lines
426 B
JavaScript
18 lines
426 B
JavaScript
'use strict';
|
|
|
|
import requests from '../utils/requests';
|
|
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) {
|
|
return requests.get(AppConstants.apiEndpoint + 'ownership/loans/contract/?loanee=' + email);
|
|
}
|
|
};
|
|
|
|
export default OwnershipFetcher;
|