Skip to content

Commit

Permalink
Add back locations
Browse files Browse the repository at this point in the history
  • Loading branch information
kotykhin authored Apr 10, 2022
1 parent 1dfacbe commit 78b3401
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default {
this.isLoading = true;
console.log(this.form);
return this.axios
.post("http://localhost:8080/check", this.form)
.post("${location.origin}:8080/check", this.form)
.then((response) => {
console.log(response.data);
//parse answer from api
Expand All @@ -116,7 +116,7 @@ export default {
initTopics() {
this.isLoading = true;
return this.axios
.get("http://localhost:8080/topics/" + this.form.language)
.get("${location.origin}/topics/" + this.form.language)
.then((response) => {
console.log(response.data);
this.topics = response.data.message;
Expand Down

0 comments on commit 78b3401

Please sign in to comment.