From 60db170c0d69a76ab51da101d630f62208788945 Mon Sep 17 00:00:00 2001 From: hubian <908234780@qq.com> Date: Tue, 28 Apr 2026 13:09:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF=E7=9A=84GET=20API=E8=B7=AF?= =?UTF-8?q?=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/app.py b/backend/app.py index 2bfa46f..98d7044 100644 --- a/backend/app.py +++ b/backend/app.py @@ -501,8 +501,9 @@ def get_users(): @app.route('/api/admin/users/', methods=['GET']) +@app.route('/api/user/', methods=['GET']) def get_user(id): - """获取单个用户""" + """获取单个用户信息""" conn = get_db() cursor = conn.cursor() cursor.execute('SELECT * FROM users WHERE id = ?', (id,))