Skip to content

Commit 60c923b

Browse files
authored
Update test.js
1 parent a2c556b commit 60c923b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

api/test.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
module.exports = (req, res) => {
22
const {username, age} = req.body
3-
res.send(`username: ${username},age: ${age}`)
4-
}
3+
res.json(
4+
{
5+
username,
6+
age
7+
}
8+
)
9+
}

0 commit comments

Comments
 (0)