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:
Ian Gulliver
2026-01-30 22:31:58 -08:00
parent 98c7fc75b7
commit d63b8192d2
4 changed files with 10 additions and 7 deletions

View File

@@ -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() {

View File

@@ -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() {