chore: refactor

This commit is contained in:
Vishnu Narayanan
2024-01-24 19:43:03 +05:30
parent d1039d4866
commit cb2fa4da45
6 changed files with 57 additions and 46 deletions
+16
View File
@@ -0,0 +1,16 @@
/* global axios */
import ApiClient from './ApiClient';
class SLA extends ApiClient {
constructor() {
super('sla', { accountScoped: true });
}
get({ page }) {
const url = page ? `${this.url}?page=${page}` : this.url;
return axios.get(url);
}
}
export default new SLA();