routes refactoring

This commit is contained in:
Peter Papp
2021-05-13 17:50:42 +02:00
parent 3af8bff13b
commit b4e6561134
16 changed files with 573 additions and 608 deletions

View File

@@ -150,7 +150,7 @@
events.$on('action:confirmed', data => {
if (data.operation === 'delete-invoice') {
axios.delete(`/api/oasis/invoices/${data.id}`)
axios.delete(`/api/invoices/${data.id}`)
.then(() => this.goTo(this.currentFolder.location))
.catch(() => this.$isSomethingWrong())
}
@@ -159,7 +159,7 @@
events.$on('action:confirmed', data => {
if (data.operation === 'delete-client') {
axios.delete(`/api/oasis/clients/${data.id}`)
axios.delete(`/api/clients/${data.id}`)
.then(() => this.goTo(this.currentFolder.location))
.catch(() => this.$isSomethingWrong())
}