chore(api): rename diagnostic to a unique path to defeat any stale routing cache
This commit is contained in:
@@ -48,6 +48,7 @@ export async function withRestKey<T>(
|
|||||||
if (process.env.CLAUDEMESH_DEBUG_PROBE) {
|
if (process.env.CLAUDEMESH_DEBUG_PROBE) {
|
||||||
const probeUrls = [
|
const probeUrls = [
|
||||||
"https://claudemesh.com/api/v1/me/workspace",
|
"https://claudemesh.com/api/v1/me/workspace",
|
||||||
|
"https://claudemesh.com/api/v1/me/ping",
|
||||||
"https://claudemesh.com/api/v1/me/topics",
|
"https://claudemesh.com/api/v1/me/topics",
|
||||||
];
|
];
|
||||||
for (const u of probeUrls) {
|
for (const u of probeUrls) {
|
||||||
|
|||||||
@@ -496,11 +496,11 @@ export const v1Router = new Hono<Env>()
|
|||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
||||||
// GET /v1/me/ping — sanity probe for cross-mesh route health.
|
// GET /v1/diagnostics-fresh-2026-05-03 — fresh path probe.
|
||||||
.get("/me/ping", async (c) => {
|
.get("/diagnostics-fresh-2026-05-03", async (c) => {
|
||||||
const key = c.var.apiKey;
|
const key = c.var.apiKey;
|
||||||
requireCapability(key, "read");
|
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.
|
// GET /v1/me/topics — cross-mesh topic list for the caller's user.
|
||||||
|
|||||||
Reference in New Issue
Block a user