10 lines
312 B
TypeScript
10 lines
312 B
TypeScript
import { LedgerAPIClient, resolveLedgerAPIBaseURL } from '$lib/ledger'
|
|
import type { LayoutLoad } from './$types'
|
|
|
|
const ledgerAPI = new LedgerAPIClient({ baseURL: resolveLedgerAPIBaseURL("http://127.0.0.1:8000") })
|
|
|
|
export const load: LayoutLoad = async () => {
|
|
return {
|
|
status: await ledgerAPI.status()
|
|
}
|
|
} |