mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 18:13:49 +01:00
17 lines
278 B
JavaScript
17 lines
278 B
JavaScript
'use strict';
|
|
|
|
import requests from '../utils/requests';
|
|
|
|
|
|
let PieceFetcher = {
|
|
/**
|
|
* Fetch one user from the API.
|
|
* If no arg is supplied, load the current user
|
|
*/
|
|
fetchOne() {
|
|
return requests.get('piece');
|
|
}
|
|
};
|
|
|
|
export default PieceFetcher;
|