Initial Code Commit
This commit is contained in:
parent
fa1468245f
commit
28db152b87
24 changed files with 2691 additions and 2 deletions
8
src/decorators/ChildController.ts
Normal file
8
src/decorators/ChildController.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { BaseController } from '../controllers/BaseController';
|
||||
|
||||
export function ChildController<T extends { new(...args: any[]): {} }>(childController: BaseController | BaseController[]) {
|
||||
return function (target: T) {
|
||||
// Define a metadata key for the child controller
|
||||
Reflect.defineMetadata('ChildController', childController, target);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue