Skip to content

Commit 633b0b1

Browse files
committed
refactor(routes): ♻️ change response json key
1 parent 586084f commit 633b0b1

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

.all-contributorsrc

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,6 @@
55
"imageSize": 100,
66
"commit": false,
77
"contributors": [
8-
{
9-
"login": "mcnaveen",
10-
"name": "MC Naveen",
11-
"avatar_url": "https://avatars.githubusercontent.com/u/8493007?v=4",
12-
"profile": "https://github.com/mcnaveen",
13-
"contributions": [
14-
"code",
15-
"data",
16-
"doc",
17-
"ideas",
18-
"maintenance",
19-
"review"
20-
]
21-
},
228
{
239
"login": "jonah-butler",
2410
"name": "jonah-butler",

routes/pronounce.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ router.post("/", function (req, res) {
2020
var userWord = encodeURIComponent(req.body.word);
2121
let wordData = pronounce(userWord);
2222
const pronouncedWord = decodeURIComponent(wordData);
23-
res.status(200).json({ word: pronouncedWord });
23+
res.status(200).json({ pronunciation: pronouncedWord });
2424
});
2525

2626
export default router;

0 commit comments

Comments
 (0)