@chubbyts/chubbyts-framework
    Preparing search index...

    Function createApplication

    • import type { Middleware } from '@chubbyts/chubbyts-undici-server/dist/server';
      import { createErrorMiddleware } from '@chubbyts/chubbyts-framework/dist/middleware/error-middleware';
      import { createRouteMatcherMiddleware } from '@chubbyts/chubbyts-framework/dist/middleware/route-matcher-middleware';
      import { createApplication } from '@chubbyts/chubbyts-framework/dist/application';

      const errorMiddleware: Middleware = createErrorMiddleware(...);
      const routeMatcherMiddleware: Middleware = createRouteMatcherMiddleware(...);

      const application = createApplication([ errorMiddleware, routeMatcherMiddleware ]);

      Parameters

      • middlewares: Middleware[]
      • handler: Handler = ...

      Returns Handler