aboutsummaryrefslogtreecommitdiff
path: root/src/modules/api.js
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2016-11-26 18:57:08 +0100
committerRoger Braun <roger@rogerbraun.net>2016-11-26 18:57:08 +0100
commit215e51f764660442405b47c2620c62681ef5a057 (patch)
tree1ae3ef9f92701cca32558732a3b025ed7db824e8 /src/modules/api.js
parentb1f9f6395c6f1e621eec64f8586649dd6f04daf1 (diff)
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.
Diffstat (limited to 'src/modules/api.js')
-rw-r--r--src/modules/api.js14
1 files changed, 14 insertions, 0 deletions
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