We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 160a671 commit b847561Copy full SHA for b847561
src/router/route.ts
@@ -154,7 +154,7 @@ export class Route<Controller extends Constructor<any> = any> extends Macroable
154
*/
155
if (is.class_(handler[0])) {
156
return {
157
- reference: handler[0].name,
+ reference: handler,
158
...moduleCaller(handler[0], (handler[1] || 'handle') as string).toHandleMethod(),
159
}
160
@@ -164,7 +164,7 @@ export class Route<Controller extends Constructor<any> = any> extends Macroable
164
* loads the controller
165
166
167
168
...moduleImporter(handler[0], (handler[1] || 'handle') as string).toHandleMethod(),
169
170
0 commit comments