Extracting FileController into a Uploader container
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// lib/app.ts
|
||||
import {FileController} from "./Controller/FileController";
|
||||
import {App as uwsApp} from "./Server/sifrr.server";
|
||||
|
||||
class App {
|
||||
public app: uwsApp;
|
||||
public fileController: FileController;
|
||||
|
||||
constructor() {
|
||||
this.app = new uwsApp();
|
||||
|
||||
this.fileController = new FileController(this.app);
|
||||
}
|
||||
}
|
||||
|
||||
export default new App().app;
|
||||
Reference in New Issue
Block a user