around the table

This commit is contained in:
2025-08-21 00:27:58 -04:00
parent 35a5af154f
commit 7d8ac0db76
4 changed files with 54 additions and 20 deletions

View File

@@ -1,3 +1,4 @@
import { createResource } from "solid-js";
import { type Api } from "../../server/src/api";
import { treaty } from "@elysiajs/eden";
@@ -8,3 +9,5 @@ const { api } = treaty<Api>(
}
);
export default api;
export const [me] = createResource(() => api.whoami.post().then((r) => r.data));