mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-22 09:32:14 +00:00
controller refactoring part 11
This commit is contained in:
@@ -151,7 +151,7 @@
|
||||
})
|
||||
},
|
||||
fetchPaymentMethods() {
|
||||
axios.get('/api/user/payment-cards')
|
||||
axios.get('/api/user/subscription/payment-cards')
|
||||
.then(response => {
|
||||
|
||||
if (response.status == 204) {
|
||||
@@ -182,7 +182,7 @@
|
||||
|
||||
this.deletingID = data.id
|
||||
|
||||
axios.post('/api/user/payment-cards/' + data.id, {
|
||||
axios.post('/api/user/subscription/payment-cards/' + data.id, {
|
||||
_method: 'delete'
|
||||
})
|
||||
.then(() => {
|
||||
@@ -206,7 +206,7 @@
|
||||
|
||||
if (data.operation === 'set-as-default-credit-card') {
|
||||
|
||||
axios.post('/api/user/payment-cards/' + data.id, {
|
||||
axios.post('/api/user/subscription/payment-cards/' + data.id, {
|
||||
default: 1,
|
||||
_method: 'patch'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user