1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 09:50:31 +01:00
onion/js/fetchers/user_fetcher.js

17 lines
275 B
JavaScript

'use strict';
import requests from '../utils/requests';
let UserFetcher = {
/**
* Fetch one user from the API.
* If no arg is supplied, load the current user
*/
fetchOne() {
return requests.get('user');
}
};
export default UserFetcher;