All files / src/modules/developers developers.controller.ts

68.75% Statements 11/16
75% Branches 3/4
16.66% Functions 1/6
100% Lines 9/9

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 2511x 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); }
}