spee.ch/react/api/channelApi.js

15 lines
432 B
JavaScript
Raw Normal View History

2018-02-23 00:01:25 -08:00
import Request from 'utils/request';
const { site: { host } } = require('../../config/speechConfig.js');
2018-02-07 13:26:07 -08:00
2018-02-07 22:22:17 -08:00
export function getChannelData (name, id) {
if (!id) id = 'none';
const url = `${host}/api/channel/data/${name}/${id}`;
2018-02-23 00:01:25 -08:00
return Request(url);
};
export function getChannelClaims (name, longId, page) {
if (!page) page = 1;
2018-02-23 11:00:46 -08:00
const url = `${host}/api/channel/claims/${name}/${longId}/${page}`;
return Request(url);
};