Skip to content

Commit

Permalink
change backend url to cloudfront
Browse files Browse the repository at this point in the history
  • Loading branch information
metiletan committed Aug 21, 2023
1 parent 24f294b commit 9587b4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const useAppStore = defineStore('app', () => {
async function translate() {
const config = {
method: 'post',
url: 'https://api.latin.com.ua/api/translate',
url: '/api/translate',
data : {
'translationMethod': translationMethod.value,
'text': sourceText.value,
Expand All @@ -35,7 +35,7 @@ export const useAppStore = defineStore('app', () => {
async function getTranslationMethods() {
const config = {
method: 'get',
url: 'https://api.latin.com.ua/api/translation-methods',
url: '/api/translation-methods',
headers: {
'Content-Type': 'application/json'
},
Expand Down

0 comments on commit 9587b4c

Please sign in to comment.