Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 771 Bytes

File metadata and controls

39 lines (27 loc) · 771 Bytes
code type title description
true
page
constructor | Framework | Core
Controller abstract class constructor

constructor

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

    // [...]
  }
}