File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
packages/cli/src/routeGeneration/templates Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,11 @@ export function RegisterRoutes(app: Router) {
81
81
82
82
{{ #each controllers }}
83
83
{{ #each actions }}
84
+ const args{{ ../name }} _{{ name }} : Record<string , TsoaRoute.ParameterSchema> = {
85
+ {{ #each parameters }}
86
+ {{ @key }} : {{{ json this }}} ,
87
+ {{ /each }}
88
+ };
84
89
app.{{ method }} ('{{ fullPath }} ',
85
90
{{ #if security.length }}
86
91
authenticateMiddleware({{ json security }} ),
@@ -101,17 +106,12 @@ export function RegisterRoutes(app: Router) {
101
106
...(fetchMiddlewares<RequestHandler >({{ ../name }} .prototype.{{ name }} )),
102
107
103
108
async function {{ ../name }} _{{ name }} (request: ExRequest, response: ExResponse, next: any) {
104
- const args: Record<string , TsoaRoute.ParameterSchema> = {
105
- {{ #each parameters }}
106
- {{ @key }} : {{{ json this }}} ,
107
- {{ /each }}
108
- };
109
109
110
110
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
111
111
112
112
let validatedArgs: any[] = [];
113
113
try {
114
- validatedArgs = templateService.getValidatedArgs({ args, request, response });
114
+ validatedArgs = templateService.getValidatedArgs({ args: args {{ ../name }} _ {{ name }} , request, response });
115
115
116
116
{{ #if ../../iocModule }}
117
117
const container: IocContainer = typeof iocContainer === 'function' ? (iocContainer as IocContainerFactory)(request) : iocContainer;
You can’t perform that action at this time.
0 commit comments