Skip to content

Commit c978172

Browse files
authored
Update index.html
1 parent 7b62db8 commit c978172

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

simulators/math-worksheet-builder/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,14 +453,14 @@
453453
// API CONFIGURATION
454454
// ══════════════════════════════════════════════════════════
455455
// UPDATE to your actual Vercel URL before deploying
456-
const API_BASE_URL = 'https://aion-backend-mu.vercel.app';
456+
const API_BASE_URL = 'https://aion-backend-mu.vercel.app/api/simulators';
457457

458458
async function callAPI(module, params) {
459459
try {
460460
const res = await fetch(`${API_BASE_URL}/api/math-worksheet`, {
461461
method: 'POST',
462462
headers: { 'Content-Type': 'application/json' },
463-
body: JSON.stringify({ module, params })
463+
body: JSON.stringify({ simulator: 'math-worksheet', module, params })
464464
});
465465
if (!res.ok) {
466466
const err = await res.json().catch(() => ({}));

0 commit comments

Comments
 (0)