Methods
getApiHandler(name) → {mw.echo.api.APIHandler|undefined
}
#
undefined
}
#
Get the API handler that matches the symbolic name
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Symbolic name of the API handler |
- Source:
Returns:
API handler, if exists
- Type
-
mw.echo.api.APIHandler
|
undefined
Get the API handler that matches the symbolic name
setApiHandler(name, handler)
#
Set an API handler by passing in an instance of an mw.echo.api.APIHandler subclass directly.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Symbolic name |
handler |
mw.echo.api.APIHandler | Handler object |
- Source:
Throws:
-
If handler already exists
- Type
- Error
Set an API handler by passing in an instance of an mw.echo.api.APIHandler subclass directly.