Skip to content

Commit

Permalink
Bugfix: gateway should independent
Browse files Browse the repository at this point in the history
  • Loading branch information
joaobose committed Jun 9, 2023
1 parent 8e32e72 commit f891159
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/routing/gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type { HTTPService } from '../io/http-service'

export type Gateway = (
router: Router
) => (options: {
) => (options?: {
proxy: httpProxy
routeOffset: number
}) => (
Expand Down
3 changes: 2 additions & 1 deletion src/routing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ export const routingFactory = <T extends Controller>(
...http(router, controllerFactory),
group,
subgroup,
gateway: gateway(router),
})

export const gatewayFactory = (router: Router) => gateway(router)

0 comments on commit f891159

Please sign in to comment.