added first pass of homepage

This commit is contained in:
2025-12-16 11:49:14 -05:00
parent e9cce2571a
commit 5f03820891
4 changed files with 57 additions and 2 deletions

18
ui/src/api/docs.ts Normal file
View File

@@ -0,0 +1,18 @@
// @ts-ignore
const addr = import.meta.env.VITE_APIHOST;
export async function getWelcomeMessage(): Promise<string> {
const res = await fetch(`${addr}/docs/welcome`, {
method: "GET",
credentials: 'include',
});
if (res.ok) {
const out = res.json();
if (!out) {
return null;
}
return out;
} else {
return null;
}
}