renaming 'api/canvas' endpoint to 'api/interpreter' (#34410)
This commit is contained in:
parent
65362bb639
commit
98eb5d5bc4
|
@ -3,7 +3,7 @@
|
|||
"version": "1.0.0",
|
||||
"license": "Apache-2.0",
|
||||
"scripts": {
|
||||
"canvas:peg": "pegjs common/lib/grammar.peg",
|
||||
"interpreter:peg": "pegjs common/lib/grammar.peg",
|
||||
"build": "node scripts/build",
|
||||
"kbn:bootstrap": "node scripts/build --dev",
|
||||
"kbn:watch": "node scripts/build --dev --watch"
|
||||
|
|
|
@ -17,4 +17,4 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
export const API_ROUTE = '/api/canvas';
|
||||
export const API_ROUTE = '/api/interpreter';
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import '@babel/polyfill';
|
||||
import { typeSpecs } from './index';
|
||||
|
||||
// eslint-disable-next-line no-undef
|
||||
typeSpecs.forEach(canvas.register);
|
|
@ -18,4 +18,4 @@
|
|||
*/
|
||||
|
||||
// The server endpoint for retrieiving and running Canvas functions.
|
||||
export const FUNCTIONS_URL = '/api/canvas/fns';
|
||||
export const FUNCTIONS_URL = '/api/interpreter/fns';
|
||||
|
|
|
@ -8,7 +8,7 @@ export const CANVAS_TYPE = 'canvas-workpad';
|
|||
export const CANVAS_APP = 'canvas';
|
||||
export const APP_ROUTE = '/app/canvas';
|
||||
export const APP_ROUTE_WORKPAD = `${APP_ROUTE}#/workpad`;
|
||||
export const API_ROUTE = '/api/canvas';
|
||||
export const API_ROUTE = '/api/interpreter';
|
||||
export const API_ROUTE_WORKPAD = `${API_ROUTE}/workpad`;
|
||||
export const API_ROUTE_WORKPAD_ASSETS = `${API_ROUTE}/workpad-assets`;
|
||||
export const API_ROUTE_WORKPAD_STRUCTURES = `${API_ROUTE}/workpad-structures`;
|
||||
|
|
Loading…
Reference in a new issue