update router location

This commit is contained in:
Robert Soriano
2022-05-17 16:50:41 -07:00
parent 81d8497f20
commit 2f19d63e5c
4 changed files with 7 additions and 13 deletions

View File

@@ -21,10 +21,10 @@ export default defineNuxtConfig({
## Usage
Create your tRPC [routes](https://trpc.io/docs/router) and [context](https://trpc.io/docs/context) under `server/fn/index.ts`:
Create your tRPC [routes](https://trpc.io/docs/router) and [context](https://trpc.io/docs/context) under `~/trpc/index.ts`:
```ts
// ~/server/fn/index.ts
// ~/trpc/index.ts
import type { inferAsyncReturnType } from '@trpc/server'
import * as trpc from '@trpc/server'