code | type | title | description |
---|---|---|---|
true |
page |
constructor | Framework | Core |
Controller abstract class constructor |
Constructor method of the Controller
abstract class. It must be called with the Backend class instantiated by the application.
constructor (app: Backend);
Argument | Type | Description |
---|---|---|
app |
Backend |
Instantiated application Backend class |
import { Controller } from 'kuzzle';
class GreetingController extends Controller {
constructor (app: Backend) {
super(app);
// [...]
}
}