12 lines
334 B
TypeScript
12 lines
334 B
TypeScript
import { Controller, Get, Param } from '@nestjs/common';
|
|
import { SancionService } from './sancion.service';
|
|
@Controller('sancion')
|
|
export class SancionController {
|
|
constructor(private readonly sancionService: SancionService) {}
|
|
|
|
@Get(':id')
|
|
findOne(@Param('id') id: number) {
|
|
return this.sancionService.findOne(+id);
|
|
}
|
|
}
|