mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-10 04:22:09 +10:00
11 lines
325 B
TypeScript
11 lines
325 B
TypeScript
import { FsObjectBackend } from "../internal/objects/fsBackend";
|
|
|
|
// To-do insert logic surrounding deciding what object backend to use
|
|
export const objectHandler = new FsObjectBackend();
|
|
|
|
export default defineNitroPlugin((nitro) => {
|
|
nitro.hooks.hook("request", (h3) => {
|
|
h3.context.objects = objectHandler;
|
|
});
|
|
});
|