imporved mobile styling and started dependecy injection for backend

This commit is contained in:
subnub
2024-07-02 12:17:34 -04:00
parent 9bdad8cc94
commit 09cb81f96d
14 changed files with 774 additions and 42 deletions
+1 -16
View File
@@ -1,25 +1,10 @@
import { Router } from "express";
import auth from "../middleware/auth";
import FileController from "../controllers/file";
import env from "../enviroment/env";
import FileSystemService from "../services/ChunkService/FileSystemService";
import S3Service from "../services/ChunkService/S3Service";
import ChunkInterface from "../services/ChunkService/utils/ChunkInterface";
import authFullUser from "../middleware/authFullUser";
import authStreamVideo from "../middleware/authStreamVideo";
let fileController: FileController;
let chunkService: ChunkInterface;
if (env.dbType === "fs") {
const fileSystemService = new FileSystemService();
chunkService = fileSystemService;
fileController = new FileController(fileSystemService);
} else {
const s3Service = new S3Service();
chunkService = s3Service;
fileController = new FileController(s3Service);
}
const fileController = new FileController();
const router = Router();