From 215e51f764660442405b47c2620c62681ef5a057 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Sat, 26 Nov 2016 18:57:08 +0100 Subject: Move some interactions to the backendInteractor The idea is that all interactions should move there, so components don't have to pass around credentials all the time. --- src/modules/api.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/modules/api.js (limited to 'src/modules/api.js') diff --git a/src/modules/api.js b/src/modules/api.js new file mode 100644 index 00000000..4000dc60 --- /dev/null +++ b/src/modules/api.js @@ -0,0 +1,14 @@ +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 -- cgit v1.2.3-70-g09d2