Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 11x 11x 11x 11x 11x 11x 11x 11x 11x | import { Controller, Get, Param, ParseIntPipe } from '@nestjs/common';
import { DevelopersService } from '@app/modules/developers/developers.service';
@Controller()
export class DevelopersController {
constructor(private readonly svc: DevelopersService) {}
@Get('developers')
listDevelopers() { return this.svc.listDevelopers(); }
@Get('developers/:id')
getDeveloper(@Param('id', ParseIntPipe) id: number) { return this.svc.getDeveloper(id); }
@Get('developers/:id/projects')
getDeveloperProjects(@Param('id', ParseIntPipe) id: number) { return this.svc.getDeveloperProjects(id); }
@Get('projects')
listProjects() { return this.svc.listProjects(); }
@Get('projects/:id/units')
listUnits(@Param('id', ParseIntPipe) id: number) { return this.svc.listUnits(id); }
}
|