import { Controller, Get, Post, Body, Query } from '@nestjs/common';
import { KpisService } from './kpis.service';

@Controller('kpis')
export class KpisController {
  constructor(private readonly svc: KpisService) {}

  @Get()
  findAll(@Query() q: any) { return this.svc.findAll(q); }

  @Post()
  create(@Body() dto: any) { return this.svc.create(dto); }

  @Get('dashboard')
  dashboard(@Query() q: any) { return this.svc.dashboard(q); }
}
