import { Controller, Get, Post, Patch, Body, Param, Query } from '@nestjs/common';
import { MetasService } from './metas.service';

@Controller('metas')
export class MetasController {
  constructor(private readonly svc: MetasService) {}

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

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

  @Patch(':id')
  update(@Param('id') id: string, @Body() dto: any) { return this.svc.update(id, dto); }

  @Get('progresso')
  progresso() { return this.svc.progresso(); }
}
