1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00
onion/js/fetchers/user_fetcher.js
2015-06-02 13:48:01 +02:00

18 lines
323 B
JavaScript

import fetch from '../utils/fetch';
import AppConstants from '../constants/application_constants';
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;