mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-14 12:14:40 +01:00
update http handler params
This commit is contained in:
@@ -64,7 +64,7 @@ export function createNuxtApiHandler<TRouter extends AnyRouter>({
|
||||
createContext,
|
||||
responseMeta,
|
||||
onError,
|
||||
...otherOpts
|
||||
batching,
|
||||
}: ResolveHTTPRequestOptions<TRouter>) {
|
||||
return defineEventHandler(async (event) => {
|
||||
const {
|
||||
@@ -96,7 +96,7 @@ export function createNuxtApiHandler<TRouter extends AnyRouter>({
|
||||
}
|
||||
|
||||
const httpResponse = await resolveHTTPResponse({
|
||||
...otherOpts,
|
||||
batching,
|
||||
router,
|
||||
req: {
|
||||
method: req.method!,
|
||||
|
||||
Reference in New Issue
Block a user