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 23a9f06 commit 30463c5Copy full SHA for 30463c5
api/test.js
@@ -1,31 +1,9 @@
1
-// module.exports = (req, res) => {
2
-// const {username, age} = req.body
3
-// res.json(
4
-// {
5
-// username,
6
-// age
7
-// }
8
-// )
9
10
-
11
-module.exports.getUserData = (req, res) => {
12
- const {
13
- username,
14
- age
15
- } = req.body
16
- res.json({
17
18
19
- })
+module.exports = (req, res) => {
+ const {username, age} = req.body
+ res.json(
+ {
+ username,
+ age
+ }
+ )
20
}
21
-module.exports.getBookData = (req, res) => {
22
23
- bookname,
24
- price
25
26
27
28
29
30
-}
31
0 commit comments