Skip to content

Commit

Permalink
URL corregidas
Browse files Browse the repository at this point in the history
  • Loading branch information
WacoMaco committed Jun 6, 2019
1 parent 0a0c4cc commit 6217c66
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pages/register/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export default {
var token = "JWT " + this.$cookies.get("token");
this.$http
.get("https://api4-datame.herokuapp.com/api/v1/offer", {
.get("https://api5-datame.herokuapp.com/api/v1/offer", {
headers: { Authorization: token }
})
.then(result => {
Expand Down Expand Up @@ -383,7 +383,7 @@ export default {
formData.append("photo", this.form.photo);
}
this.$http
.post("https://api4-datame.herokuapp.com/api/v1/register", formData)
.post("https://api5-datame.herokuapp.com/api/v1/register", formData)
.then(result => {
this.registerMessage = this.$t('success_register')
this.registered = true;
Expand All @@ -395,14 +395,14 @@ export default {
formLogin.append("username", this.form.username);
formLogin.append("password", this.form.password);
const baseURI = "https://api4-datame.herokuapp.com/api/v1/#";
const baseURI = "https://api5-datame.herokuapp.com/api/v1/#";
this.$http
.post("https://api4-datame.herokuapp.com/api/v1/#", formLogin)
.post("https://api5-datame.herokuapp.com/api/v1/#", formLogin)
.then(result => {
this.$cookies.set("token", result.data.token);
let token = `JWT ${this.$cookies.get("token")}`;
this.$http
.get("https://api4-datame.herokuapp.com/api/v1/whoami", {
.get("https://api5-datame.herokuapp.com/api/v1/whoami", {
headers: { Authorization: token }
})
.then(result => {
Expand Down

0 comments on commit 6217c66

Please # to comment.