new api(app, db)
Construction function. Wraps complete Aidbot's RESTful webservice and authentication and authorization mechanism.
Parameters:
| Name | Type | Description |
|---|---|---|
app |
Function | instance of Express application |
db |
Connection | database connection |
- Source:
- api.js, line 10