Documentation
    Preparing search index...

    Function createApplication

    • import type { Middleware } from '@chubbyts/chubbyts-http-types/dist/middleware';
      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 errorMiddleware: Middleware = createRouteMatcherMiddleware(...);

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

      Parameters

      Returns Handler