forked from DebaucheryLibrarian/traxxx
Separated user page stash component.
This commit is contained in:
@@ -67,6 +67,12 @@ function initStashesActions(store, _router) {
|
||||
return curateStash(stash);
|
||||
}
|
||||
|
||||
async function createStash(context, stash) {
|
||||
const newStash = await post('/stashes', stash);
|
||||
|
||||
return newStash;
|
||||
}
|
||||
|
||||
async function updateStash(context, { stashId, stash }) {
|
||||
const newStash = await patch(`/stashes/${stashId}`, stash);
|
||||
|
||||
@@ -98,6 +104,7 @@ function initStashesActions(store, _router) {
|
||||
}
|
||||
|
||||
return {
|
||||
createStash,
|
||||
fetchStash,
|
||||
stashActor,
|
||||
stashScene,
|
||||
|
||||
Reference in New Issue
Block a user