Commit 39a1c7ae authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

API for state manager changed

parent c027add5
...@@ -128,7 +128,11 @@ export default class { ...@@ -128,7 +128,11 @@ export default class {
* @returns {AxiosPromise} An ES6 promise. * @returns {AxiosPromise} An ES6 promise.
*/ */
saveState (state) { saveState (state) {
return this._axios.post('/state', state) return this._axios.post('/state', {
state,
handler: this._handler,
server: this._dataSource
})
} }
/** /**
...@@ -140,9 +144,7 @@ export default class { ...@@ -140,9 +144,7 @@ export default class {
*/ */
requestStateAccess (stateID) { requestStateAccess (stateID) {
return this._axios.post(`/state/${stateID}`, { return this._axios.post(`/state/${stateID}`, {
auth: this._getAuth(), auth: this._getAuth()
handler: this._handler,
server: this._dataSource
}) })
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment