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

Class TestRouteWithMultiplePaths

packages/core/test/middleware/routes-mapper.spec.ts:59–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 ]);
58 });
59 @Controller(['test', 'test2'])
60 class TestRouteWithMultiplePaths {
61 @RequestMapping({ path: 'test' })
62 public getTest() {}
63
64 @RequestMapping({ path: 'another', method: RequestMethod.DELETE })
65 public getAnother() {}
66 }
67
68 it('should map a controller with multiple paths to "ControllerMetadata" in forRoutes', () => {
69 const config = {

Callers

nothing calls this directly

Calls 2

ControllerFunction · 0.90
RequestMappingFunction · 0.90

Tested by

no test coverage detected