mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-03-28 18:26:36 +00:00
15 lines
441 B
TypeScript
15 lines
441 B
TypeScript
import type { AuditLog } from '$lib/types/audit-log.type';
|
|
import type { Paginated, SearchPaginationSortRequest } from '$lib/types/pagination.type';
|
|
import APIService from './api-service';
|
|
|
|
class AuditLogService extends APIService {
|
|
async list(options?: SearchPaginationSortRequest) {
|
|
const res = await this.api.get('/audit-logs', {
|
|
params: options
|
|
});
|
|
return res.data as Paginated<AuditLog>;
|
|
}
|
|
}
|
|
|
|
export default AuditLogService;
|