diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-11-14 07:56:56 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-11-14 08:05:36 +0100 |
| commit | 4b5597b3fe6e02f1655e6a731e83bdcdf1017d63 (patch) | |
| tree | 818580507641787380b58bdcfa7d0ed7026f4e82 /code/app/src/lib/api/root.ts | |
| parent | 99b0c09a6bb984d811b63788015cfad1855b5f3c (diff) | |
| download | greatoffice-4b5597b3fe6e02f1655e6a731e83bdcdf1017d63.tar.xz greatoffice-4b5597b3fe6e02f1655e6a731e83bdcdf1017d63.zip | |
refactor: Api files always returns Response
Diffstat (limited to 'code/app/src/lib/api/root.ts')
| -rw-r--r-- | code/app/src/lib/api/root.ts | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/code/app/src/lib/api/root.ts b/code/app/src/lib/api/root.ts deleted file mode 100644 index 661f24b..0000000 --- a/code/app/src/lib/api/root.ts +++ /dev/null @@ -1,12 +0,0 @@ -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")); -}
\ No newline at end of file |
