Class GeneralWEBController

class: GeneralWEBController

  • support additional helper functions for web-controller.

Hierarchy

Constructors

Properties

TYPE: string

resource type of this Controller.

the base controller to bypass.

Methods

  • translate to camel styled method name from mode + cmd ex: GET /0/hi -> getHelloHi ex: GET /0/say-me -> getHelloSayMe

    Parameters

    • mode: string
    • Optional type: string
    • Optional cmd: string

    Returns string

  • translate to camel styled function name like doGetHello()

    ex: GET / -> doList ex: GET /0/hi -> doGetHi ex: POST /0/say-me -> doPostSayMe

    Parameters

    • mode: string
    • Optional type: string
    • Optional cmd: string

    Returns string

Generated using TypeDoc