mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 12:39:17 +00:00
9 lines
266 B
JavaScript
9 lines
266 B
JavaScript
import { checkResponse, fetchWithTimeout } from './fetchUtil';
|
|
|
|
export async function removeChannel(token, channelId) {
|
|
|
|
let channel = await fetchWithTimeout(`/content/channels/${channelId}?agent=${token}`,
|
|
{ method: 'DELETE' });
|
|
checkResponse(channel);
|
|
}
|