mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 09:35:10 +01:00
17 lines
266 B
JavaScript
17 lines
266 B
JavaScript
'use strict';
|
|
|
|
import fetch from '../utils/fetch';
|
|
|
|
|
|
let UserFetcher = {
|
|
/**
|
|
* Fetch one user from the API.
|
|
* If no arg is supplied, load the current user
|
|
*/
|
|
fetchOne() {
|
|
return fetch.get('user');
|
|
}
|
|
};
|
|
|
|
export default UserFetcher;
|