Skip to content

Commit 98eb5d5

Browse files
authored
renaming 'api/canvas' endpoint to 'api/interpreter' (#34410)
1 parent 65362bb commit 98eb5d5

File tree

5 files changed

+4
-28
lines changed

5 files changed

+4
-28
lines changed

packages/kbn-interpreter/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"license": "Apache-2.0",
55
"scripts": {
6-
"canvas:peg": "pegjs common/lib/grammar.peg",
6+
"interpreter:peg": "pegjs common/lib/grammar.peg",
77
"build": "node scripts/build",
88
"kbn:bootstrap": "node scripts/build --dev",
99
"kbn:watch": "node scripts/build --dev --watch"

src/legacy/core_plugins/interpreter/common/constants.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
* under the License.
1818
*/
1919

20-
export const API_ROUTE = '/api/canvas';
20+
export const API_ROUTE = '/api/interpreter';

src/legacy/core_plugins/interpreter/common/types/register.js

-24
This file was deleted.

src/legacy/core_plugins/interpreter/public/lib/consts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
*/
1919

2020
// The server endpoint for retrieiving and running Canvas functions.
21-
export const FUNCTIONS_URL = '/api/canvas/fns';
21+
export const FUNCTIONS_URL = '/api/interpreter/fns';

x-pack/plugins/canvas/common/lib/constants.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const CANVAS_TYPE = 'canvas-workpad';
88
export const CANVAS_APP = 'canvas';
99
export const APP_ROUTE = '/app/canvas';
1010
export const APP_ROUTE_WORKPAD = `${APP_ROUTE}#/workpad`;
11-
export const API_ROUTE = '/api/canvas';
11+
export const API_ROUTE = '/api/interpreter';
1212
export const API_ROUTE_WORKPAD = `${API_ROUTE}/workpad`;
1313
export const API_ROUTE_WORKPAD_ASSETS = `${API_ROUTE}/workpad-assets`;
1414
export const API_ROUTE_WORKPAD_STRUCTURES = `${API_ROUTE}/workpad-structures`;

0 commit comments

Comments
 (0)