Initialize SvelteKit project with default routing, ESLint, Prettier, Storybook setup, and basic components.
This commit is contained in:
10
src/routes/+layout.ts
Normal file
10
src/routes/+layout.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user