From f891159b59bcfbc8c33b1c43f38111153e7030d2 Mon Sep 17 00:00:00 2001 From: joaobose Date: Fri, 9 Jun 2023 01:18:08 -0400 Subject: [PATCH] Bugfix: gateway should independent --- src/routing/gateway.ts | 2 +- src/routing/index.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/routing/gateway.ts b/src/routing/gateway.ts index 7408a67..7904ac4 100644 --- a/src/routing/gateway.ts +++ b/src/routing/gateway.ts @@ -8,7 +8,7 @@ import type { HTTPService } from '../io/http-service' export type Gateway = ( router: Router -) => (options: { +) => (options?: { proxy: httpProxy routeOffset: number }) => ( diff --git a/src/routing/index.ts b/src/routing/index.ts index 064173a..015d669 100644 --- a/src/routing/index.ts +++ b/src/routing/index.ts @@ -12,5 +12,6 @@ export const routingFactory = ( ...http(router, controllerFactory), group, subgroup, - gateway: gateway(router), }) + +export const gatewayFactory = (router: Router) => gateway(router)