2018-02-07 22:26:07 +01:00
|
|
|
import Request from 'utils/request';
|
2018-02-08 07:22:17 +01:00
|
|
|
import request from '../utils/request';
|
2018-02-07 22:26:07 +01:00
|
|
|
|
2018-02-08 07:22:17 +01:00
|
|
|
export function getChannelData (name, id) {
|
|
|
|
console.log('getting and storing channel data for channel:', name, id);
|
|
|
|
if (!id) id = 'none';
|
|
|
|
const url = `/api/channel/data/${name}/${id}`;
|
|
|
|
return request(url)
|
2018-02-08 03:01:51 +01:00
|
|
|
};
|
|
|
|
|
2018-02-08 07:22:17 +01:00
|
|
|
export function getChannelClaims (name, claimId) {
|
2018-02-08 03:01:51 +01:00
|
|
|
|
|
|
|
return Request(url);
|
|
|
|
};
|