mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Remove user_fetcher.js
This commit is contained in:
parent
f0325f2473
commit
6a0c4b4272
@ -1,20 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
import requests from '../utils/requests';
|
||||
import ApiUrls from '../constants/api_urls';
|
||||
|
||||
let UserFetcher = {
|
||||
/**
|
||||
* Fetch one user from the API.
|
||||
* If no arg is supplied, load the current user
|
||||
*/
|
||||
fetchOne() {
|
||||
return requests.get('user');
|
||||
},
|
||||
|
||||
logout() {
|
||||
return requests.get(ApiUrls.users_logout);
|
||||
}
|
||||
};
|
||||
|
||||
export default UserFetcher;
|
Loading…
Reference in New Issue
Block a user