Fix settings URL path: include /settings prefix

SETTINGS_URL is the base host only; routes are prefixed /settings/api.
Was calling /api/internal/... which returned nothing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-04 13:21:57 +00:00
parent 030c46a846
commit d0e80c2484

View file

@ -10,7 +10,7 @@ async function fetchSettingsRoomsConfig() {
const secret = process.env.SETTINGS_SECRET const secret = process.env.SETTINGS_SECRET
if (!url || !secret) return null if (!url || !secret) return null
try { try {
const res = await fetch(`${url}/api/internal/global-config/newbook.rooms`, { const res = await fetch(`${url}/settings/api/internal/global-config/newbook.rooms`, {
headers: { Authorization: `Bearer ${secret}` }, headers: { Authorization: `Bearer ${secret}` },
}) })
if (!res.ok) return null if (!res.ok) return null