File edit

This commit is contained in:
Milos Stojanovic
2020-02-20 15:04:22 +01:00
parent b8f7d000fb
commit 246874ed31
17 changed files with 117 additions and 2 deletions

View File

@@ -198,6 +198,16 @@ const api = {
.catch(error => reject(error))
})
},
saveContent (params) {
return new Promise((resolve, reject) => {
axios.post('savecontent', {
name: params.name,
content: params.content,
})
.then(res => resolve(res.data))
.catch(error => reject(error))
})
},
}
export default api