feat: 初始化DevOps平台后端
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
import { ApiOkResponse, ApiTags } from '@nestjs/swagger';
|
||||
import { AuditRecordSummary, AuditService } from './audit.service';
|
||||
|
||||
@ApiTags('audit')
|
||||
@Controller('audit-logs')
|
||||
export class AuditController {
|
||||
constructor(private readonly auditService: AuditService) {}
|
||||
|
||||
@Get()
|
||||
@ApiOkResponse({ description: 'Recent sanitized audit records.' })
|
||||
listRecentRecords(): AuditRecordSummary[] {
|
||||
return this.auditService.getRecentRecords();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user