Class PluginAbstract

Base class for plugins. The plugin must extend this class.

Constructors

Methods

  • Gets the list of callbacks called before the route execution.

    Returns {
        callback: (<R>(req: R, res: IResponse) => Promise<void>);
        spec: string;
    }[]

  • Gets the list of javascript code to inject in the generated entry file.

    Returns string[]

  • Gets the list of styles to merge in the rs app css.

    Returns string[]

  • Gets the list of scripts to require in the html header.

    Returns string[]

  • Gets the list of styles to require in the html header.

    Returns string[]

  • Registers the plugin to the server instance.

    Parameters

    • server: default

      The server instance.

    Returns Promise<void>