habitica-self-host/website/client/store/actions/user.js

6 lines
191 B
JavaScript
Raw Normal View History

2016-12-07 01:11:40 +00:00
import Vue from 'vue';
export async function fetch (store) { // eslint-disable-line no-shadow
let response = await Vue.http.get('/api/v3/user');
store.state.user = response.body.data;
}