mirror of
https://github.com/moku-project/Moku.git
synced 2026-06-13 09:19:56 -05:00
Chore: Implement Server Adapters & Request Manager
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import type { ServerAdapter } from '$lib/server-adapters/types'
|
||||
|
||||
let adapter: ServerAdapter
|
||||
|
||||
export function initRequestManager(a: ServerAdapter) {
|
||||
adapter = a
|
||||
}
|
||||
|
||||
export function getAdapter(): ServerAdapter {
|
||||
if (!adapter) throw new Error('RequestManager not initialized')
|
||||
return adapter
|
||||
}
|
||||
Reference in New Issue
Block a user