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

@@ -20,7 +20,7 @@ const actions = {
})
axios
.get('/api/oasis/invoices/regular' + getters.invoiceSorting.URI)
.get('/api/invoices/regular' + getters.invoiceSorting.URI)
.then(response => {
commit('LOADING_STATE', {loading: false, data: response.data})
})
@@ -41,7 +41,7 @@ const actions = {
})
axios
.get('/api/oasis/invoices/advance' + getters.invoiceSorting.URI)
.get('/api/invoices/advance' + getters.invoiceSorting.URI)
.then(response => {
commit('LOADING_STATE', {loading: false, data: response.data})
})
@@ -62,7 +62,7 @@ const actions = {
})
axios
.get('/api/oasis/clients' + getters.invoiceSorting.URI)
.get('/api/clients' + getters.invoiceSorting.URI)
.then(response => {
commit('LOADING_STATE', {loading: false, data: response.data})
})
@@ -78,7 +78,7 @@ const actions = {
commit('CHANGE_SEARCHING_STATE', true)
axios
.get('/api/oasis/invoices/search', {
.get('/api/invoices/search', {
params: {
query: query,
type: getters.currentFolder.location,
@@ -94,7 +94,7 @@ const actions = {
commit('CHANGE_SEARCHING_STATE', true)
axios
.get('/api/oasis/clients/search', {
.get('/api/clients/search', {
params: {query: query}
})
.then(response => {