examples/server1/src/app.controller.ts   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 19
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 14
dl 0
loc 19
rs 10
c 0
b 0
f 0
mnd 0
bc 0
fnc 2
bpm 0
cpm 1
noi 0

2 Functions

Rating   Name   Duplication   Size   Complexity  
A AppController.handleDefaultEvent 0 4 1
A AppController.rabbit 0 4 1
1
import { Controller, Get } from '@nestjs/common';
2
import { AppService } from './app.service';
3
4
@Controller()
5
export class AppController {
6
  constructor(private readonly appService: AppService) {
7
  }
8
9
  @Get('/default')
10
  handleDefaultEvent() {
11
    this.appService.handleDefaultEvent();
12
  }
13
14
  @Get('/rabbit')
15
  rabbit() {
16
    this.appService.rabbitEvent();
17
  }
18
}
19