Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 19 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
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 |