215e51f764
The idea is that all interactions should move there, so components don't have to pass around credentials all the time.
14 lines
340 B
JavaScript
14 lines
340 B
JavaScript
import backendInteractorService from '../services/backend_interactor_service/backend_interactor_service.js'
|
|
|
|
const api = {
|
|
state: {
|
|
backendInteractor: backendInteractorService()
|
|
},
|
|
mutations: {
|
|
setBackendInteractor (state, backendInteractor) {
|
|
state.backendInteractor = backendInteractor
|
|
}
|
|
}
|
|
}
|
|
|
|
export default api
|