diff --git a/dashboard/ralph.html b/dashboard/ralph.html
index 6b665c8..e377467 100644
--- a/dashboard/ralph.html
+++ b/dashboard/ralph.html
@@ -569,7 +569,7 @@
async function fetchStatus() {
try {
- const res = await fetch('/api/ralph/status', { cache: 'no-store' });
+ const res = await fetch('/echo/api/ralph/status', { cache: 'no-store' });
if (!res.ok) throw new Error('HTTP ' + res.status);
const data = await res.json();
renderSnapshot(data);
@@ -585,7 +585,7 @@
drawerBody.textContent = 'Se încarcă...';
drawer.dataset.open = 'true';
try {
- const res = await fetch(`/api/ralph/${encodeURIComponent(slug)}/log?lines=200`);
+ const res = await fetch(`/echo/api/ralph/${encodeURIComponent(slug)}/log?lines=200`);
const data = await res.json();
drawerBody.textContent = (data.lines || []).join('\n');
} catch (err) {
@@ -598,7 +598,7 @@
drawerBody.textContent = 'Se încarcă...';
drawer.dataset.open = 'true';
try {
- const res = await fetch(`/api/ralph/${encodeURIComponent(slug)}/prd`);
+ const res = await fetch(`/echo/api/ralph/${encodeURIComponent(slug)}/prd`);
const data = await res.json();
drawerBody.textContent = JSON.stringify(data, null, 2);
} catch (err) {
@@ -609,7 +609,7 @@
async function stopRalph(slug) {
if (!confirm(`Oprești Ralph pe ${slug}?`)) return;
try {
- const res = await fetch(`/api/ralph/${encodeURIComponent(slug)}/stop`, { method: 'POST' });
+ const res = await fetch(`/echo/api/ralph/${encodeURIComponent(slug)}/stop`, { method: 'POST' });
const data = await res.json();
if (!data.success) {
alert('Eșec: ' + (data.error || 'unknown'));
@@ -624,7 +624,7 @@
async function rollbackRalph(slug) {
if (!confirm(`Asta va da git revert HEAD pe ${slug} și va decrementa ultima story trecută. Continui?`)) return;
try {
- const res = await fetch(`/api/ralph/${encodeURIComponent(slug)}/rollback`, { method: 'POST' });
+ const res = await fetch(`/echo/api/ralph/${encodeURIComponent(slug)}/rollback`, { method: 'POST' });
const data = await res.json();
if (!data.success) {
alert('Rollback eşuat: ' + (data.message || 'unknown'));
@@ -686,7 +686,7 @@
return;
}
try {
- eventSource = new EventSource('/api/ralph/stream');
+ eventSource = new EventSource('/echo/api/ralph/stream');
} catch (err) {
startPolling();
return;