databag/net/web/src/api/removeContactChannelTopic.js

9 lines
333 B
JavaScript
Raw Normal View History

2022-05-26 22:19:58 +00:00
import { checkResponse, fetchWithTimeout } from './fetchUtil';
export async function removeContactChannelTopic(server, token, channelId, topicId) {
let channel = await fetchWithTimeout(`https://${server}//content/channels/${channelId}/topics/${topicId}?contact=${token}`,
{ method: 'DELETE' });
checkResponse(channel);
}