mirror of
https://github.com/nikdoof/pocket-id.git
synced 2025-12-14 07:12:19 +00:00
15 lines
427 B
TypeScript
15 lines
427 B
TypeScript
import type { AuditLog } from '$lib/types/audit-log.type';
|
|
import type { Paginated, PaginationRequest } from '$lib/types/pagination.type';
|
|
import APIService from './api-service';
|
|
|
|
class AuditLogService extends APIService {
|
|
async list(pagination?: PaginationRequest) {
|
|
const res = await this.api.get('/audit-logs', {
|
|
params: pagination
|
|
});
|
|
return res.data as Paginated<AuditLog>;
|
|
}
|
|
}
|
|
|
|
export default AuditLogService;
|