around the table
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user