This commit is contained in:
Fran Jurmanović
2022-03-10 18:53:49 +01:00
commit 6ef57924ea
22 changed files with 2084 additions and 0 deletions

14
core/Controller.ts Normal file
View File

@@ -0,0 +1,14 @@
class Controller {
private controllers: any[];
constructor(...args: any[]) {
this.controllers = [...args];
}
public register = (): void => {
this?.controllers?.forEach?.((controller) => {
controller.register();
});
};
}
export default Controller;

1
core/index.ts Normal file
View File

@@ -0,0 +1 @@
export { default as Controller } from "./Controller";