Major update: ESG, KPIs, metas, alertas, auditoria, documentos, importação, relatórios, subcategorias, dashboard orçamentos
This commit is contained in:
16
backend/src/modules/alertas/alertas.controller.ts
Normal file
16
backend/src/modules/alertas/alertas.controller.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Controller, Get, Post, Body } from '@nestjs/common';
|
||||
import { AlertasService } from './alertas.service';
|
||||
|
||||
@Controller('alertas')
|
||||
export class AlertasController {
|
||||
constructor(private readonly svc: AlertasService) {}
|
||||
|
||||
@Get('configs')
|
||||
getConfigs() { return this.svc.getConfigs(); }
|
||||
|
||||
@Post('configurar')
|
||||
configurar(@Body() dto: any) { return this.svc.configurar(dto); }
|
||||
|
||||
@Post('verificar')
|
||||
verificar() { return this.svc.verificarAlertas(); }
|
||||
}
|
||||
Reference in New Issue
Block a user