Skip to content

Commit

Permalink
prefix API path to /api
Browse files Browse the repository at this point in the history
  • Loading branch information
lostbean committed Jan 4, 2024
1 parent ea77156 commit 435c802
Showing 1 changed file with 3 additions and 3 deletions.
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
Expand Up @@ -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");

0 comments on commit 435c802

Please sign in to comment.