remove apiService from users module

This commit is contained in:
Roger Braun 2016-11-26 19:12:09 +01:00
parent 215e51f764
commit 56dc34977e
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,3 @@
import apiService from '../services/api/api.service.js'
import timelineFetcher from '../services/timeline_fetcher/timeline_fetcher.service.js'
import backendInteractorService from '../services/backend_interactor_service/backend_interactor_service.js'
@ -22,7 +21,7 @@ const users = {
loginUser (store, userCredentials) {
const commit = store.commit
commit('beginLogin')
return apiService.verifyCredentials(userCredentials)
return store.rootState.api.backendInteractor.verifyCredentials(userCredentials)
.then((response) => {
if (response.ok) {
response.json()

View File

@ -11,7 +11,8 @@ const backendInteractorService = (credentials) => {
const backendInteractorServiceInstance = {
fetchStatus,
fetchConversation
fetchConversation,
verifyCredentials: apiService.verifyCredentials
}
return backendInteractorServiceInstance