Class GeneralController

class: GeneralController.

  • As WebController, routes by path /hello/{id}/action to method function like getHelloAction

Hierarchy

Implements

Constructors

Properties

Methods

Constructors

Properties

TYPE: string

resource type of this Controller.

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