Setu-TS
    Preparing search index...

    Function DecoratorPlugin

    • Creates the DecoratorPlugin.

      The plugin registers the shared metadataStore under CAPABILITIES.METADATA_STORE (so ctx.metadata resolves to it), then registers routes and services from the explicit lists and/or auto-discovered classes, and replays custom decorators against any registered DecoratorHandlers.

      Parameters

      Returns IPlugin

      The plugin instance

      import { DecoratorPlugin } from '@setu-ts/decorator-plugin';

      app.register(DecoratorPlugin({
      controllers: [UserController, OrderController],
      }));

      During registration for invalid decorated metadata or captive controller dependencies

      0.1.0