闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
247 B

  1. import axios from 'axios';
  2. export default getState => axios.create({
  3. headers: {
  4. 'Authorization': `Bearer ${getState().getIn(['meta', 'access_token'], '')}`
  5. },
  6. transformResponse: [function (data) {
  7. return JSON.parse(data);
  8. }]
  9. });