Skip to content

Commit

Permalink
Changed API URI.
Browse files Browse the repository at this point in the history
  • Loading branch information
ay0503 committed Nov 14, 2024
1 parent 5d9314e commit 0916308
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 @@ -5,7 +5,7 @@ const translatorApi = module.exports;

translatorApi.translate = async function (postData) {
// Edit the translator URL below
const TRANSLATOR_API = "https://nodebb-f24-translator.azurewebsites.net/"
const TRANSLATOR_API = "https://nodebb-f24-translator.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 0916308

Please sign in to comment.