mirror of
https://gitlab.massbug.com/massbug/judge4c.git
synced 2026-10-15 14:45:26 +00:00
feat(rpc): create type-safe client with AppType
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
import { hc } from "hono/client";
|
||||
import { AppType } from "@/app/api/[[...route]]/route";
|
||||
|
||||
export const client = hc<AppType>(process.env.NEXT_PUBLIC_APP_URL!);
|
||||
Reference in New Issue
Block a user