Core
Framework v2.x
2

constructor #

Available since 2.8.0
Experimental: non-backward compatible changes or removal may occur in any future release.

Constructor method of the Controller abstract class. It must be called with the Backend class instantiated by the application.

Arguments #

Copied to clipboard!
constructor (app: Backend);

Argument Type Description
app
Backend
Instantiated application Backend class

Usage #

Copied to clipboard!
import { Controller } from 'kuzzle';

class GreetingController extends Controller {
  constructor (app: Backend) {
    super(app);

    // [...]
  }
}