backend update

This commit is contained in:
carodej
2020-06-09 18:06:04 +02:00
parent 0b7bc27a5f
commit 95bc310def
48 changed files with 1013 additions and 657 deletions
@@ -206,11 +206,14 @@
// Send order request
axios
.post('/api/upgrade', {
.post('/api/subscription/upgrade', {
billing: this.billing,
plan: this.requestedPlan,
})
.then(response => {
.then(() => {
// Update user data
this.$store.dispatch('getAppData')
// End loading
this.isSubmitted = false
@@ -232,7 +235,7 @@
}
},
created() {
axios.get('/api/profile')
axios.get('/api/user')
.then(response => {
if (! this.requestedPlan) {