prepare for sharing music
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Artem Anufrij
2023-02-15 12:57:13 +01:00
parent 6ec3e60bd9
commit daa2d339ce
3 changed files with 19 additions and 14 deletions

View File

@@ -153,5 +153,12 @@ export default {
visibility: album.visibility
}
axios.put(context.rootGetters.server + "/api/albums/" + album._id, body, context.rootGetters.headers);
},
share(context, album) {
return new Promise((resolve) => {
axios.get(context.rootGetters.server + "/api/albums/" + album._id + "/share", context.rootGetters.headers).then(res => {
resolve(res.data);
});
})
}
}