import type { Handler } from '@chubbyts/chubbyts-http-types/dist/handler';import type { Middleware } from '@chubbyts/chubbyts-http-types/dist/middleware';import { createMiddlewareHandler } from '@chubbyts/chubbyts-framework/dist/handler/middleware-handler';const middleware: Middleware = ...;const handler: Handler = ...;const middlewareHandler: Handler = createMiddlewareHandler(middleware, handler); Copy
import type { Handler } from '@chubbyts/chubbyts-http-types/dist/handler';import type { Middleware } from '@chubbyts/chubbyts-http-types/dist/middleware';import { createMiddlewareHandler } from '@chubbyts/chubbyts-framework/dist/handler/middleware-handler';const middleware: Middleware = ...;const handler: Handler = ...;const middlewareHandler: Handler = createMiddlewareHandler(middleware, handler);