Files
habitica/website/client/store/actions/user.js
T
Matteo Pagliazzi 8805f81b96 Client/inventory WIP (#8527)
* some stable work and faster less recompilation

*  user with zero tasks can use the app

* wip work to show loading status of resources

* revert changes to sync
2017-03-03 15:40:21 +01:00

6 lines
191 B
JavaScript

import axios from 'axios';
export async function fetch (store) { // eslint-disable-line no-shadow
let response = await axios.get('/api/v3/user');
store.state.user = response.data.data;
}