sysmgr-nest/src/audit-logs/audit-logs.controller.ts
liuyun 39a4e21eed fix: rename logs module to audit-logs/login-logs (avoid gitignore collision)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-10 21:25:57 +08:00

14 lines
393 B
TypeScript

import { Controller, Get, Query } from '@nestjs/common';
import { PageQuery } from '../common/page.dto.js';
import { AuditLogsService } from './audit-logs.service.js';
@Controller('audit-logs')
export class AuditLogsController {
constructor(private readonly service: AuditLogsService) {}
@Get()
list(@Query() q: PageQuery) {
return this.service.paginate(q.page, q.pageSize);
}
}