MCPcopy
hub / github.com/FoalTS/foal / ApiController

Class ApiController

packages/core/src/core/routes/make-controller-routes.spec.ts:224–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222
223 it('should recursively return the routes of the subControllers if they exist.', () => {
224 @Reflect.metadata('path', '/api')
225 @Hook(hook2)
226 class ApiController {
227 @Get('/flights')
228 @Hook(hook3)
229 flights() {}
230 }
231
232 @Reflect.metadata('path', '/auth')
233 @Hook(hook4)

Callers

nothing calls this directly

Calls 15

HookFunction · 0.90
GetFunction · 0.90
ApiInfoFunction · 0.90
PostFunction · 0.90
ApiOperationFunction · 0.90
controllerFunction · 0.90
ApiResponseFunction · 0.90
ApiUseTagFunction · 0.90
ApiServerFunction · 0.90
ApiExternalDocFunction · 0.90
ApiSecurityRequirementFunction · 0.90
ApiDefineCallbackFunction · 0.90

Tested by

no test coverage detected