imporved mobile styling and started dependecy injection for backend
This commit is contained in:
@@ -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 };
|
||||
Reference in New Issue
Block a user