MCPcopy Create free account
hub / github.com/ParallelTask/dinoloop / setUpDinoController

Method setUpDinoController

src/modules/core/dino.container.ts:207–216  ·  view source on GitHub ↗
(type: any,
        actionAttr: IActionMethodAttribute,
        res: Response)

Source from the content-addressed store, hash-verified

205
206 // made public for unit test and not available on interface contract
207 setUpDinoController(type: any,
208 actionAttr: IActionMethodAttribute,
209 res: Response): DinoController {
210
211 let api = this.resolve<ApiController>(type, res.locals.dino);
212 let action = ControllerAction.create(actionAttr);
213 let ctx = DinoController.create(api, action);
214
215 return ctx;
216 }
217
218 // Populates controller middlewares, filters etc by walking up the controllers inheritance chain
219 // made public for unit test and not available on interface contract

Callers 2

registerControllerMethod · 0.95

Calls 2

resolveMethod · 0.95
createMethod · 0.45

Tested by

no test coverage detected