[Merge] API

This commit is contained in:
Matej Glasnák committed 2023-01-31 15:56:25 +01:00
commit 9d1fd6c16b
11 files changed
+35 -34

No files matched your search

@@ -418,9 +418,9 @@ export default {
try {
if (this.task.id) {
await this.$axios.post_auth(`v1/master-tasks/${this.task.id}`)
await this.$axios.patch_auth(`v1/master-tasks/${this.task.id}`, this.task)
} else {
await this.$axios.post_auth('v1/mastertasks')
await this.$axios.post_auth('v1/mastertasks', this.task)
}
this.closeModal()