Bringing local and remote repository in line with one another again

This commit is contained in:
Alan Bridgeman 2025-04-30 14:58:07 -05:00
parent bc581f9eac
commit 332e177f99
15 changed files with 1344 additions and 222 deletions

View file

@ -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);
};
}