blob: 661f24b7f26179b3bf6d7d1bf0f4c63e5879ca9b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { http_get_async, http_post_async } from "$lib/api/_fetch";
import { api_base } from "$lib/configuration";
import type { IInternalFetchResponse } from "$lib/models/internal/IInternalFetchResponse";
import type { Result } from "rustic";
export function server_log(message: string): void {
http_post_async(api_base("_/api/log"), message);
}
export function server_version(): Promise<Result<IInternalFetchResponse<string>, string>> {
return http_get_async(api_base("/version.txt"));
}
|