@capawesome/cli
Version:
The Capawesome Cloud Command Line Interface (CLI) to manage Live Updates and more.
14 lines (13 loc) • 415 B
JavaScript
import httpClient from '../utils/http-client.js';
class SessionCodesServiceImpl {
httpClient;
constructor(httpClient) {
this.httpClient = httpClient;
}
async create() {
const response = await this.httpClient.post(`/v1/sessions/codes`, {});
return response.data;
}
}
const sessionCodesService = new SessionCodesServiceImpl(httpClient);
export default sessionCodesService;