Add '/blocked_services/services' API

This commit is contained in:
RoboMagus
2022-04-25 09:41:31 +02:00
committed by GitHub
parent 82af43039c
commit 0f2a9f262e
6 changed files with 76 additions and 0 deletions

View File

@@ -481,10 +481,17 @@ class Api {
}
// Blocked services
BLOCKED_SERVICES_SERVICES = { path: 'blocked_services/services', method: 'GET' };
BLOCKED_SERVICES_LIST = { path: 'blocked_services/list', method: 'GET' };
BLOCKED_SERVICES_SET = { path: 'blocked_services/set', method: 'POST' };
getBlockedServicesAvailableServices() {
const { path, method } = this.BLOCKED_SERVICES_SERVICES;
return this.makeRequest(path, method);
}
getBlockedServices() {
const { path, method } = this.BLOCKED_SERVICES_LIST;
return this.makeRequest(path, method);