mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-23 09:40:39 +00:00
api refactoring
This commit is contained in:
@@ -152,7 +152,7 @@ export default {
|
||||
this.isSendingBillingAlert = true
|
||||
|
||||
axios
|
||||
.patch(`/api/subscriptions/billing-alerts/${this.user.data.relationships.alert.data.id}`, {
|
||||
.put('/api/subscriptions/billing-alert', {
|
||||
amount: this.billingAlertAmount,
|
||||
})
|
||||
.then(() => {
|
||||
@@ -184,7 +184,7 @@ export default {
|
||||
this.isSendingBillingAlert = true
|
||||
|
||||
axios
|
||||
.post('/api/subscriptions/billing-alerts', {
|
||||
.post('/api/subscriptions/billing-alert', {
|
||||
amount: this.billingAlertAmount,
|
||||
})
|
||||
.then(() => {
|
||||
@@ -222,7 +222,7 @@ export default {
|
||||
events.$on('action:confirmed', (data) => {
|
||||
if (data.operation === 'delete-billing-alert')
|
||||
axios
|
||||
.delete(`/api/subscriptions/billing-alerts/${this.user.data.relationships.alert.data.id}`)
|
||||
.delete('/api/subscriptions/billing-alert')
|
||||
.then(() => {
|
||||
this.$store.dispatch('getAppData')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user