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
@@ -0,0 +1,17 @@
import fs from "fs";
import { UserInterface } from "../../models/user";
import { AuthParams, IStorageActions } from "./StoreTypes";
class FilesystemActions implements IStorageActions {
async getAuth() {
return {};
}
createReadStream(params: AuthParams): NodeJS.ReadableStream {
if (!params.filePath) throw new Error("File path not configured");
const fsReadableStream = fs.createReadStream(params.filePath);
return fsReadableStream;
}
}
export { FilesystemActions };