From 91dae2777dc7c6021ff5b8e4a44919c6617e8652 Mon Sep 17 00:00:00 2001 From: Aschen Date: Fri, 10 May 2019 16:42:44 +0200 Subject: [PATCH 1/2] Add since --- src/sdk-reference/js/6/extend-sdk/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sdk-reference/js/6/extend-sdk/index.md b/src/sdk-reference/js/6/extend-sdk/index.md index adec4e09b..6b51a4a24 100644 --- a/src/sdk-reference/js/6/extend-sdk/index.md +++ b/src/sdk-reference/js/6/extend-sdk/index.md @@ -7,6 +7,8 @@ order: 410 # Extend the SDK with a custom SDK controller +{{{since "6.1.1"}}} + It is possible to extend the SDK's API by adding new controllers. These controllers correspond to [custom controllers created in a plugin]({{ site_base_path }}plugins/1/essentials/controllers). Thus, it is possible to use the actions of a core plugin in the SDK in the same way as the other actions of the Kuzzle API. From 371e149fbe7497e2acd71389631a022037ba1023 Mon Sep 17 00:00:00 2001 From: Aschen Date: Mon, 13 May 2019 13:20:53 +0200 Subject: [PATCH 2/2] fix --- src/sdk-reference/js/6/extend-sdk/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdk-reference/js/6/extend-sdk/index.md b/src/sdk-reference/js/6/extend-sdk/index.md index 6b51a4a24..9ae97a459 100644 --- a/src/sdk-reference/js/6/extend-sdk/index.md +++ b/src/sdk-reference/js/6/extend-sdk/index.md @@ -25,7 +25,7 @@ After defining your new controller based on `BaseController`, you can add it to The constructor of a custom SDK controller will be called by passing the SDK instance to it. It must call the parent constructor with this instance of the SDK and its name as defined in the API. -For instance, if there is a plugin named `nyc-open-data-taxi`, extending Kuzzle's API with the following controller: +For instance, if there is a plugin named `nyc-open-data-plugin`, extending Kuzzle's API with the following controller: ```javascript this.controllers = {