Core
Framework v2.x
2

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);

ArgumentTypeDescription
app
Backend
Instantiated application Backend class

Usage #

import { Controller } from 'kuzzle';

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

    // [...]
  }
}