Update templates/code_execution.html
Browse files
templates/code_execution.html
CHANGED
|
@@ -537,7 +537,7 @@
|
|
| 537 |
stopCodeBtn.style.display = 'flex';
|
| 538 |
|
| 539 |
try {
|
| 540 |
-
const response = await fetch('
|
| 541 |
method: 'POST',
|
| 542 |
headers: { 'Content-Type': 'application/json' },
|
| 543 |
body: JSON.stringify({ code })
|
|
@@ -588,7 +588,7 @@
|
|
| 588 |
|
| 589 |
try {
|
| 590 |
// Send input to backend
|
| 591 |
-
const response = await fetch('
|
| 592 |
method: 'POST',
|
| 593 |
headers: { 'Content-Type': 'application/json' },
|
| 594 |
body: JSON.stringify({
|
|
@@ -634,7 +634,7 @@
|
|
| 634 |
|
| 635 |
try {
|
| 636 |
// Send stop request to server
|
| 637 |
-
const response = await fetch('
|
| 638 |
method: 'POST',
|
| 639 |
headers: { 'Content-Type': 'application/json' },
|
| 640 |
body: JSON.stringify({ context_id: executionContext })
|
|
|
|
| 537 |
stopCodeBtn.style.display = 'flex';
|
| 538 |
|
| 539 |
try {
|
| 540 |
+
const response = await fetch('/api/code/execute', {
|
| 541 |
method: 'POST',
|
| 542 |
headers: { 'Content-Type': 'application/json' },
|
| 543 |
body: JSON.stringify({ code })
|
|
|
|
| 588 |
|
| 589 |
try {
|
| 590 |
// Send input to backend
|
| 591 |
+
const response = await fetch('/api/code/input', {
|
| 592 |
method: 'POST',
|
| 593 |
headers: { 'Content-Type': 'application/json' },
|
| 594 |
body: JSON.stringify({
|
|
|
|
| 634 |
|
| 635 |
try {
|
| 636 |
// Send stop request to server
|
| 637 |
+
const response = await fetch('/api/code/stop', {
|
| 638 |
method: 'POST',
|
| 639 |
headers: { 'Content-Type': 'application/json' },
|
| 640 |
body: JSON.stringify({ context_id: executionContext })
|