constructor #
Available since 2.8.0
Constructor method of the Controller
abstract class. It must be called with the Backend class instantiated by the application.
Arguments #
constructor (app: Backend);
Argument | Type | Description |
---|---|---|
app | Backend | Instantiated application Backend class |
Usage #
import { Controller } from 'kuzzle';
class GreetingController extends Controller {
constructor (app: Backend) {
super(app);
// [...]
}
}
Edit this page on Github(opens new window)