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