Skip to content

Commit

Permalink
refactor: update backend route
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeMaster17 committed Sep 3, 2024
1 parent 4e973ff commit af3824e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/core/problem/VerticalResizable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const VerticalResizable: React.FC<any> = ({ problem }) => {
if (jobStatus === "pending") {
setStatus("pending")
return;
};
}
setOutput(jobOutput)
setJobId(jobId)
// console logs for reference
Expand Down
12 changes: 9 additions & 3 deletions frontend/src/constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
export const BACKEND_ROUTE_CODE = "http://localhost:5002/api/v1";
// export const BACKEND_ROUTE_CODE = "http://localhost:5002/api/v1";
// export const BACKEND_ROUTE_CODE = "https://pathfiller.kiitians.com";
export const BACKEND_ROUTE_CODE = "https://pathfiller.kiitians.com/api/v1";

export const PROBLEM_ROUTE = "http://localhost:5002/api/v1/problem";
// export const PROBLEM_ROUTE = "http://localhost:5002/api/v1/problem";
export const PROBLEM_ROUTE =
// "https://pathfiller-web-app-hxh6fqcnbubzfada.eastus-01.azurewebsites.net/api/v1/problem";
"https://pathfiller.kiitians.com/api/v1/problem";

export const PLAYGROUND_ROUTE = "http://localhost:5002/api/v1/playground";
export const PLAYGROUND_ROUTE =
"https://pathfiller.kiitians.com/api/v1/playground";

0 comments on commit af3824e

Please sign in to comment.