Skip to content

Commit a93ce24

Browse files
committed
Move to seperate endpoint
1 parent f8463c2 commit a93ce24

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
- Free API - `https://random-words-api.vercel.app/word`
1313
- Dutch Random Words - `https://random-words-api.vercel.app/word/dutch`
14-
- Get Pronunciation for a Word - `http://localhost:3000/word/pronounce/hello%20world`
14+
- Get Pronunciation for a Word - `http://localhost:3000/pronounce/hello%20world`
1515

1616
- PWA Demo - [Check Here](https://words.sanweb.info/)
1717

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import pronounce from './routes/pronounce.js';
88

99
app.use('/', home);
1010
app.use('/word/dutch', dutch);
11-
app.use('/word/pronounce', pronounce);
1211
app.use('/word', en);
12+
app.use('/pronounce', pronounce);
1313

1414
app.use('/', function(req, res) {
1515
res.status(404).json({

0 commit comments

Comments
 (0)