chore(api): rename diagnostic to a unique path to defeat any stale routing cache

This commit is contained in:
Alejandro Gutiérrez
2026-05-03 01:28:36 +01:00
parent c18891191e
commit 2262564680
2 changed files with 4 additions and 3 deletions

View File

@@ -48,6 +48,7 @@ export async function withRestKey<T>(
if (process.env.CLAUDEMESH_DEBUG_PROBE) {
const probeUrls = [
"https://claudemesh.com/api/v1/me/workspace",
"https://claudemesh.com/api/v1/me/ping",
"https://claudemesh.com/api/v1/me/topics",
];
for (const u of probeUrls) {

View File

@@ -496,11 +496,11 @@ export const v1Router = new Hono<Env>()
});
})
// GET /v1/me/ping — sanity probe for cross-mesh route health.
.get("/me/ping", async (c) => {
// GET /v1/diagnostics-fresh-2026-05-03 — fresh path probe.
.get("/diagnostics-fresh-2026-05-03", async (c) => {
const key = c.var.apiKey;
requireCapability(key, "read");
return c.json({ ok: true, hasIssuer: !!key.issuedByMemberId });
return c.json({ ok: true, ts: Date.now() });
})
// GET /v1/me/topics — cross-mesh topic list for the caller's user.