mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-10 04:22:09 +10:00
initial commit
This commit is contained in:
7
server/plugins/session.ts
Normal file
7
server/plugins/session.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import session from "../internal/session";
|
||||
|
||||
export default defineNitroPlugin((nitro) => {
|
||||
nitro.hooks.hook('request', (h3) => {
|
||||
h3.context.session = session;
|
||||
})
|
||||
});
|
||||
Reference in New Issue
Block a user