1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 09:35:10 +01:00
onion/js/fetchers/user_fetcher.js

19 lines
377 B
JavaScript
Raw Normal View History

2015-06-01 17:43:38 +02:00
import fetch from '../utils/fetch';
2015-05-20 16:19:40 +02:00
import AppConstants from '../constants/application_constants';
import FetchApiUtils from '../utils/fetch_api_utils';
2015-05-20 16:44:45 +02:00
2015-05-20 16:19:40 +02:00
let UserFetcher = {
/**
* Fetch one user from the API.
* If no arg is supplied, load the current user
*
*/
fetchOne() {
2015-06-01 17:43:38 +02:00
return fetch.get('user');
2015-05-20 16:19:40 +02:00
}
};
export default UserFetcher;