iam: drop /api/ path prefix, use /v1/iam/

Hanzo standard (hanzoai/openapi): every route is /v1/<service>/<resource>.
The /api/ dialect is dead on the deployed IAM (iam v1.33.24 serves 154
paths, all under /v1/iam). Prefix only; route spelling unchanged.

Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
2026-07-27 11:38:55 -07:00
co-authored by Hanzo Dev
parent 67150ebda2
commit af41c70a23
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1174,7 +1174,7 @@ HANZO_COMMERCE_WEBHOOK_SECRET=...
- **Type**: `oauth` (NOT `oidc` — Casdoor JWT tokens have iss claims that openid-client rejects)
- **Key settings**: `idToken: false`, `checks: ["state"]`, custom `token.request` function
- **Token endpoint**: `${serverUrl}/oauth/token`
- **Userinfo endpoint**: `${serverUrl}/api/userinfo`
- **Userinfo endpoint**: `${serverUrl}/v1/iam/userinfo`
- **Console env**: `IAM_SERVER_URL=https://hanzo.id`, `IAM_CLIENT_ID=hanzo-console-client-id`
### Casdoor Applications (in iam-init-data configmap)
+1 -1
View File
@@ -132,7 +132,7 @@ export default function MonitoringPage() {
const infraServices = [
{ name: "PostgreSQL", endpoint: `${apiBase}/health` },
{ name: "Redis Cache", endpoint: `${apiBase}/health` },
{ name: "IAM (hanzo.id)", endpoint: "https://iam.hanzo.ai/api/health" },
{ name: "IAM (hanzo.id)", endpoint: "https://iam.hanzo.ai/v1/iam/health" },
]
for (const svc of infraServices) {