mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-12-23 16:56:28 +00:00
18 lines
303 B
TypeScript
18 lines
303 B
TypeScript
import { call } from '$lib/api'
|
|
import { writable } from 'svelte/store'
|
|
|
|
export type Status = {
|
|
version: string
|
|
max_size: number
|
|
}
|
|
|
|
export const status = writable<null | Status>(null)
|
|
|
|
export async function init() {
|
|
const data = await call({
|
|
url: 'status',
|
|
method: 'get',
|
|
})
|
|
status.set(data)
|
|
}
|