Cleaning up action names and compose drawer
This commit is contained in:
parent
92afd29650
commit
72591cc6d5
29 changed files with 468 additions and 151 deletions
11
app/assets/javascripts/components/api.jsx
Normal file
11
app/assets/javascripts/components/api.jsx
Normal file
|
@ -0,0 +1,11 @@
|
|||
import axios from 'axios';
|
||||
|
||||
export default getState => axios.create({
|
||||
headers: {
|
||||
'Authorization': `Bearer ${getState().getIn(['meta', 'access_token'], '')}`
|
||||
},
|
||||
|
||||
transformResponse: [function (data) {
|
||||
return JSON.parse(data);
|
||||
}]
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue