mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-09 20:12:10 +10:00
completed game importing; partial work on version importing
This commit is contained in:
@ -1,11 +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 default defineNitroPlugin((nitro) => {
|
||||
const currentObjectHandler = new FsObjectBackend();
|
||||
|
||||
// To-do insert logic surrounding deciding what object backend to use
|
||||
|
||||
nitro.hooks.hook("request", (h3) => {
|
||||
h3.context.objects = currentObjectHandler;
|
||||
h3.context.objects = GlobalObjectHandler;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user