From d71c104c86533da927cea23e3ea2476b1fe2b157 Mon Sep 17 00:00:00 2001 From: Developer Date: Wed, 3 Dec 2025 16:29:33 -0800 Subject: [PATCH] =?UTF-8?q?fix(api-gateway):=20=E6=B7=BB=E5=8A=A0=20/api/v?= =?UTF-8?q?1/user=20=E8=B7=AF=E7=94=B1=E5=88=B0=20Kong=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 问题: 移动端调用 /api/v1/user/auto-create 返回 404 原因: Kong 配置只有 /api/v1/users (复数), 缺少 /api/v1/user (单数) 解决: 添加 identity-user 路由匹配 /api/v1/user 路径 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- backend/api-gateway/kong.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/api-gateway/kong.yml b/backend/api-gateway/kong.yml index b77f249b..15b3b331 100644 --- a/backend/api-gateway/kong.yml +++ b/backend/api-gateway/kong.yml @@ -32,6 +32,10 @@ services: paths: - /api/v1/auth strip_path: false + - name: identity-user + paths: + - /api/v1/user + strip_path: false - name: identity-users paths: - /api/v1/users