spee.ch/react/api/channelApi.js
2018-03-15 16:46:56 -07:00

13 lines
376 B
JavaScript

import Request from 'utils/request';
export function getChannelData (host, id, name) {
if (!id) id = 'none';
const url = `${host}/api/channel/data/${name}/${id}`;
return Request(url);
};
export function getChannelClaims (host, longId, name, page) {
if (!page) page = 1;
const url = `${host}/api/channel/claims/${name}/${longId}/${page}`;
return Request(url);
};