mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
10 lines
321 B
JavaScript
10 lines
321 B
JavaScript
import { checkResponse, fetchWithTimeout } from './fetchUtil';
|
|
|
|
export async function getChannelTopic(token, channelId, topicId) {
|
|
let topic = await fetchWithTimeout(`/content/channels/${channelId}/topics/${topicId}/detail?agent=${token}`,
|
|
{ method: 'GET' });
|
|
checkResponse(topic)
|
|
return await topic.json()
|
|
}
|
|
|