We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e6f4ad commit e6dcda9Copy full SHA for e6dcda9
1 file changed
src/router/router.ts
@@ -50,7 +50,7 @@ export abstract class BaseApiRouter extends BaseApiRoute {
50
(instance as BaseApiEndpoint).tag = tag;
51
}
52
53
- await instance.register(this.router, this.fullPath);
+ await this.registerInstance(instance);
54
55
this.registeredRoutes.push(instance);
56
@@ -83,6 +83,10 @@ export abstract class BaseApiRouter extends BaseApiRoute {
83
});
84
85
86
+
87
+ protected async registerInstance(instance: BaseApiRoute): Promise<void> {
88
+ await instance.register(this.router, this.fullPath);
89
+ }
90
91
92
export type ApiRouter = { new (): BaseApiRouter };
0 commit comments