mirror of
https://github.com/tale/headplane.git
synced 2026-07-26 07:48:14 +00:00
19 lines
464 B
TypeScript
19 lines
464 B
TypeScript
import { RouterProvider } from "@tanstack/react-router";
|
|
import { FateClient } from "react-fate";
|
|
import { createFateClient } from "react-fate/client";
|
|
|
|
import { router } from "./router";
|
|
|
|
const fate = createFateClient({
|
|
fetch: (input, init) => fetch(input, { ...init, credentials: "include" }),
|
|
url: `${__PREFIX__}/fate`,
|
|
});
|
|
|
|
export function App() {
|
|
return (
|
|
<FateClient client={fate}>
|
|
<RouterProvider router={router} />
|
|
</FateClient>
|
|
);
|
|
}
|