// This file was autogenerated. Please do not change. // All changes will be overwrited on commit. export default class BlockedServicesApi { static async blockedServicesList(): Promise { return await fetch(`/control/blocked_services/list`, { method: 'GET', }).then(async (res) => { if (res.status === 200) { return res.json(); } else { return new Error(String(res.status)); } }) } static async blockedServicesSet(data: string[]): Promise { return await fetch(`/control/blocked_services/set`, { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify(data), }).then(async (res) => { if (res.status === 200) { return res.status; } else { return new Error(String(res.status)); } }) } }