Add API calls for accounts
Add an accounts
object to axios.js
. This object will have the following methods:
-
refresh
: Fetch all accounts the users is associated with (and update theAccountStore
) -
fetch
: Return all accounts (or byid
orname
) -
removeForUser
: Delete a user's access to an account. -
edit
: Update an account's name by id -
delete
: Delete and account
All operations should update the remote Core and also update the local store instance.