mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
16 lines
245 B
JavaScript
16 lines
245 B
JavaScript
'use strict';
|
|
|
|
import requests from '../utils/requests';
|
|
|
|
|
|
let PieceFetcher = {
|
|
/**
|
|
* Fetch a piece from the API.
|
|
*/
|
|
fetchOne(id) {
|
|
return requests.get('piece', {'piece_id': id});
|
|
}
|
|
};
|
|
|
|
export default PieceFetcher;
|