feat(storage): complete phase 3 branding foundation
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import "server-only";
|
||||
|
||||
import { getServerConfig } from "../config";
|
||||
import { getSqliteConnection } from "../db/client";
|
||||
import { FileService } from "./service";
|
||||
|
||||
export function getFileService(): FileService {
|
||||
const config = getServerConfig();
|
||||
return new FileService(getSqliteConnection().db, {
|
||||
uploadsDir: config.uploadsDir,
|
||||
tmpDir: config.tmpDir,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user