update apps api routes

This commit is contained in:
axolotle 2021-03-22 16:34:08 +01:00
parent 4592a7d79d
commit 89086a8003
3 changed files with 3 additions and 3 deletions

View file

@ -100,7 +100,7 @@ export default {
// FIXME api expects at least one argument ?! (fake one given with { dontmindthis } )
const args = objectToParams(action.form ? formatFormData(action.form) : { dontmindthis: undefined })
api.put(`apps/${this.id}/actions/${action.id}`, { args }).then(response => {
api.put(`apps/${this.id}/actions/${action.id}`, { args }).then(() => {
this.$refs.view.fetchQueries()
}).catch(err => {
if (err.name !== 'APIBadRequestError') throw err

View file

@ -164,7 +164,7 @@ export default {
data () {
return {
queries: [
['GET', 'appscatalog?full&with_categories']
['GET', 'apps/catalog?full&with_categories']
],
// Data

View file

@ -103,7 +103,7 @@ export default {
applyConfig (id_) {
const args = objectToParams(formatFormData(this.forms[id_]))
api.post(`apps/${this.id}/config`, { args }).then(response => {
api.put(`apps/${this.id}/config`, { args }).then(response => {
console.log('SUCCESS', response)
}).catch(err => {
if (err.name !== 'APIBadRequestError') throw err