From b7e39b59fd0fc7b5610ebff29035bf622079e0d8 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Wed, 5 Oct 2022 20:45:21 +0800 Subject: refactor: Change file structure --- code/app/src/lib/api/root.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 code/app/src/lib/api/root.ts (limited to 'code/app/src/lib/api/root.ts') diff --git a/code/app/src/lib/api/root.ts b/code/app/src/lib/api/root.ts new file mode 100644 index 0000000..3e5bda2 --- /dev/null +++ b/code/app/src/lib/api/root.ts @@ -0,0 +1,6 @@ +import {http_post} from "$lib/api/internal-fetch"; +import {api_base} from "$lib/configuration"; + +export function server_log(message: string): void { + http_post(api_base("_/api/log"), message); +} -- cgit v1.3