Skip to content

Commit b847561

Browse files
committed
refactor: storing route reference as it is on the route node
1 parent 160a671 commit b847561

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/router/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export class Route<Controller extends Constructor<any> = any> extends Macroable
154154
*/
155155
if (is.class_(handler[0])) {
156156
return {
157-
reference: handler[0].name,
157+
reference: handler,
158158
...moduleCaller(handler[0], (handler[1] || 'handle') as string).toHandleMethod(),
159159
}
160160
}
@@ -164,7 +164,7 @@ export class Route<Controller extends Constructor<any> = any> extends Macroable
164164
* loads the controller
165165
*/
166166
return {
167-
reference: handler[0].name,
167+
reference: handler,
168168
...moduleImporter(handler[0], (handler[1] || 'handle') as string).toHandleMethod(),
169169
}
170170
}

0 commit comments

Comments
 (0)