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

Method invokeSetUp

src/modules/core/dino.controller.ts:160–174  ·  view source on GitHub ↗
(actionName: string)

Source from the content-addressed store, hash-verified

158 }
159
160 invokeSetUp(actionName: string): IKeyValuePair[] {
161 let ctx = this.controller;
162 let cta = this.controllerAction;
163 let values: IKeyValuePair[] = [];
164 let params = FunctionUtility.getParamNames(ctx[actionName]);
165
166 if (params.length > 0) {
167 values =
168 this.mapSegments(params, cta.actionAttributes.route);
169 this.handleHttpBody(values);
170 this.raiseActionParamsHandlers(values);
171 }
172
173 return values;
174 }
175
176 // If controller action is synchronous - invoke this
177 invoke(actionName: string): void {

Callers 2

invokeMethod · 0.95
invokeAsyncMethod · 0.95

Calls 3

mapSegmentsMethod · 0.95
handleHttpBodyMethod · 0.95

Tested by

no test coverage detected