Test Failed
Branch feature/typescript5 (203f49)
by Lorenzo
03:01
created

src/example/routers/Router.ts   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 15
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A Router.helloRoute 0 4 1
1
import { Request, Response } from 'express';
2
import Service from '@/example/services/Service';
3
import { RouterBean, InjectBean, Route } from '@/main';
4
5
@RouterBean('/example')
6
export default class Router {
7
  @InjectBean(Service)
8
    service!: Service;
9
10
  @Route('GET', '/hello')
11
  helloRoute(_req: Request, res: Response) {
12
    res.send(this.service.hello());
13
  }
14
}
15