Backend NestJS + Prisma, dueno de la configuracion del worker (databases, scenarios, scenario_destinations, value_mappings) y lectura de webhook_events / replication_attempts. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
13 lines
343 B
TypeScript
13 lines
343 B
TypeScript
import { Controller, Get, Inject } from '@nestjs/common';
|
|
import { DashboardService } from './dashboard.service.ts';
|
|
|
|
@Controller('dashboard')
|
|
export class DashboardController {
|
|
constructor(@Inject(DashboardService) private readonly dashboard: DashboardService) {}
|
|
|
|
@Get('stats')
|
|
getStats() {
|
|
return this.dashboard.getStats();
|
|
}
|
|
}
|