@capawesome/cli
Version:
The Capawesome Cloud Command Line Interface (CLI) to manage Live Updates and more.
18 lines (17 loc) • 611 B
JavaScript
import httpClient from '../utils/http-client.js';
import authorizationService from '../services/authorization-service.js';
class AppDevicesServiceImpl {
httpClient;
constructor(httpClient) {
this.httpClient = httpClient;
}
async delete(data) {
await this.httpClient.delete(`/v1/apps/${data.appId}/devices/${data.deviceId}`, {
headers: {
Authorization: `Bearer ${authorizationService.getCurrentAuthorizationToken()}`,
},
});
}
}
const appDevicesService = new AppDevicesServiceImpl(httpClient);
export default appDevicesService;