-
-
Save Mattchewone/61f2150704707c1df9e7353dbd86a8e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from 'vue' | |
import Vuex from 'vuex' | |
import feathersVuex from 'feathers-vuex' | |
import feathersClient from './feathers-client' | |
const { service, auth, FeathersVuex } = feathersVuex(feathersClient, { idField: '_id', enableEvents: true }) | |
Vue.use(Vuex) | |
Vue.use(FeathersVuex) | |
Vue.config.devtools = true | |
export default new Vuex.Store({ | |
plugins: [ | |
service('users', { paginate: true }), | |
service('movies', { paginate: true }), | |
auth({ userService: 'users' }) | |
] | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment