databag/app/mobile/src/api/removeChannelTopic.js
2022-09-29 11:31:55 -07:00

9 lines
323 B
JavaScript

import { checkResponse, fetchWithTimeout } from './fetchUtil';
export async function removeChannelTopic(server, token, channelId, topicId) {
let channel = await fetchWithTimeout(`https://${server}/content/channels/${channelId}/topics/${topicId}?agent=${token}`,
{ method: 'DELETE' });
checkResponse(channel);
}