Skip to content

Commit

Permalink
Update api-routes.mdx for new @solidjs/start package (#990)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
knpwrs and kodiakhq[bot] authored Jan 9, 2025
1 parent 88422ad commit 121f9b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export const client = createTRPCProxyClient<AppRouter>({
Finally, you can use the `fetch` adapter to write an API route that acts as the tRPC server.

```tsx title="routes/api/trpc/[trpc].ts"
import { type APIEvent } from "solid-start/api";
import { type APIEvent } from "@solidjs/start/server";
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
import { appRouter } from "~/lib/router";

Expand Down

0 comments on commit 121f9b6

Please sign in to comment.