]>
cat aescling's git repositories - mastodon.git/blob - app/javascript/themes/glitch/util/api.js
1 import axios
from 'axios';
2 import LinkHeader
from './link_header';
4 export const getLinks
= response
=> {
5 const value
= response
.headers
.link
;
11 return LinkHeader
.parse(value
);
14 export default getState
=> axios
.create({
16 'Authorization': `Bearer ${getState().getIn(['meta', 'access_token'], '')}`,
19 transformResponse: [function (data
) {
21 return JSON
.parse(data
);
This page took 0.07537 seconds and 4 git commands to generate.