refactor: more consistent naming for object handler

This commit is contained in:
DecDuck
2024-11-16 16:11:20 +11:00
parent 4488ae269b
commit 87230fb0e7
2 changed files with 4 additions and 4 deletions

View File

@ -1,10 +1,10 @@
import { FsObjectBackend } from "../internal/objects/fsBackend";
// To-do insert logic surrounding deciding what object backend to use
export const GlobalObjectHandler = new FsObjectBackend();
export const objectHandler = new FsObjectBackend();
export default defineNitroPlugin((nitro) => {
nitro.hooks.hook("request", (h3) => {
h3.context.objects = GlobalObjectHandler;
h3.context.objects = objectHandler;
});
});