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