MCPcopy
hub / github.com/nestjs/nest / TestRoute

Class TestRoute

packages/core/test/router/router-explorer.spec.ts:26–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25describe('RouterExplorer', () => {
26 @Controller('global')
27 class TestRoute {
28 @Get('test')
29 public getTest() {}
30
31 @Post('test')
32 public postTest() {}
33
34 @All('another-test')
35 public anotherTest() {}
36
37 @Get(['foo', 'bar'])
38 public getTestUsingArray() {}
39 }
40
41 @Controller(['global', 'global-alias'])
42 class TestRouteAlias {

Callers

nothing calls this directly

Calls 2

ControllerFunction · 0.90
PostClass · 0.50

Tested by

no test coverage detected