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:
parent
030c46a846
commit
d0e80c2484
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue