We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8807b44 commit c33f330Copy full SHA for c33f330
api/user/getUsers.js
@@ -4,7 +4,27 @@ console.log('users', users);
4
5
module.exports = (req, res) => {
6
7
- res.send({
8
- "data": users
+ res.json({
+ "data": [{
9
+ "_id": "540000198212061166",
10
+ "username": "冯霞",
11
+ "age": 28
12
+}, {
13
+ "_id": "360000198410117032",
14
+ "username": "张静",
15
16
17
+ "_id": "510000198812169757",
18
+ "username": "唐霞",
19
+ "age": 23
20
21
+ "_id": "540000201002128195",
22
+ "username": "陆平",
23
+ "age": 24
24
25
+ "_id": "990000200708037438",
26
+ "username": "乔涛",
27
28
+}]
29
})
30
}
0 commit comments