Restructure omni services and add Chatwoot research snapshot
This commit is contained in:
16
research/chatwoot/app/javascript/dashboard/api/auditLogs.js
Normal file
16
research/chatwoot/app/javascript/dashboard/api/auditLogs.js
Normal file
@@ -0,0 +1,16 @@
|
||||
/* global axios */
|
||||
|
||||
import ApiClient from './ApiClient';
|
||||
|
||||
class AuditLogs extends ApiClient {
|
||||
constructor() {
|
||||
super('audit_logs', { accountScoped: true });
|
||||
}
|
||||
|
||||
get({ page }) {
|
||||
const url = page ? `${this.url}?page=${page}` : this.url;
|
||||
return axios.get(url);
|
||||
}
|
||||
}
|
||||
|
||||
export default new AuditLogs();
|
||||
Reference in New Issue
Block a user