mirror of
https://github.com/balzack/databag.git
synced 2025-05-03 15:05:44 +00:00
8 lines
431 B
TypeScript
8 lines
431 B
TypeScript
import { checkResponse, fetchWithTimeout } from './fetchUtil';
|
|
|
|
export async function removeChannelTopic(node: string, secure: boolean, token: string, channelId: string, topicId: string): Promise<void> {
|
|
const endpoint = `http${secure ? 's' : ''}://${node}/content/channels/${channelId}/${topics}/${topicId}?agent=${token}`;
|
|
const { status } = await fetchWithTimeout(endpoint, { method: 'DELETE' });
|
|
checkResponse(status);
|
|
}
|