Files
openclaw/src/gateway
SidQin-cyber db6236b2ff fix(gateway): prevent /api/* routes from returning SPA HTML when basePath is empty
When controlUiBasePath is unset (empty string), handleControlUiHttpRequest
acts as a catch-all and serves index.html for every unmatched path — including
/api/* routes.  This causes API consumers (browser UI, curl, Discord) to
receive an HTML page instead of the expected JSON 404.

Add an early return false for /api and /api/* paths in the empty-basePath
branch so they fall through to the gateway's normal 404 handler.

Closes #30295
2026-03-01 22:23:23 +01:00
..
2026-01-14 15:02:19 +00:00