/api/category, /api/directory, /api/file 아래의 대부분의 Endpoint들을 tRPC로 마이그레이션

This commit is contained in:
static
2025-12-25 22:45:55 +09:00
parent a08ddf2c09
commit 6d95059450
45 changed files with 691 additions and 1097 deletions

View File

@@ -1,4 +1,5 @@
import { createTRPCClient, httpBatchLink } from "@trpc/client";
import superjson from "superjson";
import { browser } from "$app/environment";
import type { AppRouter } from "./router.server";
@@ -7,6 +8,7 @@ const createClient = (fetch: typeof globalThis.fetch) =>
links: [
httpBatchLink({
url: "/api/trpc",
transformer: superjson,
fetch,
}),
],