Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bencondemi authored Nov 13, 2024
1 parent 59cb24f commit 1b56dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/translate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const translatorApi = module.exports;

translatorApi.translate = async function (postData) {
const TRANSLATOR_API = 'https://d-buggers-translate-hmfmgsg4cpa5fcfp.canadacentral-01.azurewebsites.net';
const TRANSLATOR_API = 'https://translate-d-buggers.azurewebsites.net';
const response = await fetch(`${TRANSLATOR_API}/?content=${postData.content}`);
const data = await response.json();
return [data.is_english, data.translated_content];
Expand Down

0 comments on commit 1b56dba

Please sign in to comment.