Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Web UI migration to REST API #1950

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
prefix API path to /api
lostbean committed Jan 9, 2024
commit 223fe895e8f074bedf51ae08c188871a59f0f4fa
6 changes: 3 additions & 3 deletions enclave-manager/web/packages/app/src/client/constants.ts
Original file line number Diff line number Diff line change
@@ -23,9 +23,9 @@ export const KURTOSIS_EM_API_DEFAULT_URL =
process.env.REACT_APP_KURTOSIS_DEFAULT_URL || `http://${KURTOSIS_EM_DEFAULT_HOST}:${KURTOSIS_DEFAULT_EM_API_PORT}`;

// REST API
export const KURTOSIS_REST_API_DEFAULT_HOST = "engine." + (process.env.REACT_APP_KURTOSIS_DEFAULT_HOST || "localhost");
export const KURTOSIS_DEFAULT_REST_API_PORT = isDefined(process.env.REACT_APP_KURTOSIS_DEFAULT_REST_API_PORT)
? parseInt(process.env.REACT_APP_KURTOSIS_DEFAULT_REST_API_PORT)
: 9779;
export const KURTOSIS_REST_API_DEFAULT_URL =
process.env.REACT_APP_KURTOSIS_DEFAULT_URL || `http://${KURTOSIS_EM_DEFAULT_HOST}:${KURTOSIS_DEFAULT_REST_API_PORT}`;
export const KURTOSIS_WEBSOCKET_API_DEFAULT_URL = KURTOSIS_REST_API_DEFAULT_URL.replace(/^http/, 'ws');
export const KURTOSIS_REST_API_DEFAULT_URL = `http://${KURTOSIS_REST_API_DEFAULT_HOST}:${KURTOSIS_DEFAULT_REST_API_PORT}/api`;
export const KURTOSIS_WEBSOCKET_API_DEFAULT_URL = KURTOSIS_REST_API_DEFAULT_URL.replace(/^http/, "ws");