mirror of
https://github.com/tale/headplane.git
synced 2026-08-10 14:06:51 +00:00
22 lines
512 B
TypeScript
22 lines
512 B
TypeScript
import { RouterProvider } from "@tanstack/react-router";
|
|
import { FateClient, createClient, createHTTPTransport } from "react-fate";
|
|
|
|
import { router } from "./router";
|
|
|
|
const fate = createClient({
|
|
roots: {},
|
|
transport: createHTTPTransport({
|
|
fetch: (input, init) => fetch(input, { ...init, credentials: "include" }),
|
|
url: `${__PREFIX__}/fate`,
|
|
}),
|
|
types: [],
|
|
});
|
|
|
|
export function App() {
|
|
return (
|
|
<FateClient client={fate}>
|
|
<RouterProvider router={router} />
|
|
</FateClient>
|
|
);
|
|
}
|