Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Server

Hierarchy

  • Server

Index

Constructors

constructor

Properties

Protected e

Protected hookInterfaceRoutes

hookInterfaceRoutes: Array<any> = []

Protected hookRoutes

hookRoutes: Array<any> = []

Protected server

server: express.Application

Protected upload

upload: any

Methods

addWebhook

addWebhookInterface

Protected createServer

  • createServer(): void

Protected handleHookInterfaceRequest

  • handleHookInterfaceRequest(im: InterfaceManager, req: any, res: any, customHandler?: any): void

Protected handleHookRequest

  • handleHookRequest(nest: WebhookNest, req: any, res: any, customHandler?: any): void
  • Handles request and response of the web hook, creates a new job, as well as calling the nest's arrive.

    Parameters

    • nest: WebhookNest
    • req: any
    • res: any
    • Optional customHandler: any

      Custom request handler.

    Returns void

toString

  • toString(): string

Object literals

Protected config

config: object

hooks_prefix

hooks_prefix: string = "/hooks"

hooks_ui_prefix

hooks_ui_prefix: string = "/hooks-ui"

Generated using TypeDoc