fix(agent-auth): correct dashboard Agents fetch path

The dashboard Agents table passed a full '/api/latest/agent-auth/agents'
path to sendRequest, which prepends the '/api/v1' base, producing a
doubled '/api/v1/api/latest/...' URL that 404'd. Use the relative
'/agent-auth/agents' path like other sendRequest callers.

Co-Authored-By: madison@stack-auth.com <madison.w.kennedy@gmail.com>
This commit is contained in:
Devin AI 2026-07-08 06:31:31 +00:00
parent 2f58d3ecd2
commit 627c3aa43f

View File

@ -71,7 +71,7 @@ export default function PageClient() {
setError(null);
try {
const response = await adminApp[hexclaveAppInternalsSymbol].sendRequest(
"/api/latest/agent-auth/agents",
"/agent-auth/agents",
{},
"admin",
);