polen
Version:
A framework for delightful GraphQL developer portals
11 lines • 437 B
JavaScript
import { Err } from '@wollybeard/kit';
/** @see https://github.com/honojs/hono/issues/4051 */
export const delegate = (app1, method, path, app2) => {
app1.on(method, path, (c) => {
return app2.fetch(c.req.raw, c.env,
// Throws if executionCtx is not available
// https://hono.dev/docs/api/context#executionctx
Err.tryOrUndefined(() => c.executionCtx));
});
};
//# sourceMappingURL=hono-aid.js.map