diff --git a/src/runtime/app.ts b/src/runtime/app.ts index 3b00423b16..d699ae4341 100644 --- a/src/runtime/app.ts +++ b/src/runtime/app.ts @@ -1,4 +1,4 @@ -import { App as H3App, createApp, createRouter, lazyEventHandler } from 'h3' +import { App as H3App, createApp, createRouter, lazyEventHandler, Router } from 'h3' import { createFetch, Headers } from 'ohmyfetch' import destr from 'destr' import { createRouter as createMatcher } from 'radix3' @@ -13,7 +13,8 @@ import { handlers } from '#internal/nitro/virtual/server-handlers' export interface NitroApp { h3App: H3App - hooks: Hookable, + router: Router + hooks: Hookable localCall: ReturnType localFetch: ReturnType } @@ -65,6 +66,7 @@ function createNitroApp (): NitroApp { const app: NitroApp = { hooks, h3App, + router, localCall, localFetch }