Merge remote-tracking branch 'origin/main' into upstream/route-outage-unavailable

# Conflicts:
#	docs/CURRENT-STATE.md
This commit is contained in:
quanticsoul4772 committed 2026-11-09 08:14:35 -08:00
commit f7b0367d4b
338 files changed
+68183 -1074

No files matched your search

+5
View File
@@ -259,6 +259,11 @@ export function installRouteMiddleware(
// only shape that asks the upstream for them. A response WITHOUT steps is
// byte for byte what this endpoint has always returned.
middlewares.use('/api/route', async (req, res) => {
if (req.method !== 'GET') {
res.writeHead(405, { 'Content-Type': 'application/json', Allow: 'GET' });
res.end(JSON.stringify({ error: 'Method Not Allowed' }));
return;
}
const fail = (msg) => {
res.writeHead(200, { 'Content-Type': 'application/json' });
res.end(JSON.stringify({ ok: false, error: msg }));