14 lines
426 B
TypeScript
14 lines
426 B
TypeScript
import { Controller, Get, Post } from '@nestjs/common';
|
|
import { ParticipanteService } from './participante.service';
|
|
import { Participante } from './participante.entity';
|
|
|
|
@Controller('participante')
|
|
export class ParticipanteController {
|
|
constructor(private participanteService: ParticipanteService) {}
|
|
|
|
@Get()
|
|
getParticipantes(): Promise<Participante[]> {
|
|
return this.participanteService.getParticipantes();
|
|
}
|
|
}
|