Kitsas Addon Class

First create an instance of this class, add all the routers and then call the start method.

Constructors

Methods

  • Create a new router

    Remember to include the routers in the start method

    Parameters

    • path: string = '/addon'

      Path to route, default is /addon

    • useMiddleWare: boolean = true

      Use middleware, default is true. Set to false with webhooks etc.

    Returns Router

    Router

  • Start the addon server

    Parameters

    • routers: Router[]

      Routers to use

    Returns void