Rename API endpoints to /tendrils/api/*, detect SSE via Accept header
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
||||
let currentConfig = null;
|
||||
|
||||
function connectSSE() {
|
||||
const evtSource = new EventSource('/api/status/stream');
|
||||
const evtSource = new EventSource('/tendrils/api/status');
|
||||
let heartbeatTimeout = null;
|
||||
|
||||
function resetHeartbeat() {
|
||||
|
||||
@@ -135,11 +135,11 @@ export function scrollToNode(typeid) {
|
||||
}
|
||||
|
||||
export async function clearError(id) {
|
||||
await fetch('/api/errors/clear?id=' + encodeURIComponent(id), { method: 'POST' });
|
||||
await fetch('/tendrils/api/errors/clear?id=' + encodeURIComponent(id), { method: 'POST' });
|
||||
}
|
||||
|
||||
export async function clearAllErrors() {
|
||||
await fetch('/api/errors/clear?all=true', { method: 'POST' });
|
||||
await fetch('/tendrils/api/errors/clear?all=true', { method: 'POST' });
|
||||
}
|
||||
|
||||
export function updateErrorPanel() {
|
||||
|
||||
Reference in New Issue
Block a user