Bringing local and remote repository in line with one another again
This commit is contained in:
parent
bc581f9eac
commit
332e177f99
15 changed files with 1344 additions and 222 deletions
|
|
@ -1,8 +1,10 @@
|
|||
import { BaseController } from '../controllers/BaseController';
|
||||
|
||||
export const CHILD_CONTROLLER_METADATA_KEY = 'ChildController';
|
||||
|
||||
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);
|
||||
Reflect.defineMetadata(CHILD_CONTROLLER_METADATA_KEY, childController, target);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue