Fixed sandbox. Multiple tabs work now.
WiP on selectable mosaico templates. TODO: Make files always point to trusted URL, such that we don't have to rebase them. They are public anyway. The same goes for mosaico endpoints: /mosaico/templates and /mosaico/img
This commit is contained in:
parent
a4ee1534cc
commit
7788b0bc67
79 changed files with 724 additions and 390 deletions
|
@ -24,7 +24,7 @@ export default class API extends Component {
|
|||
|
||||
@withAsyncErrorHandler
|
||||
async loadAccessToken() {
|
||||
const response = await axios.get('/rest/access-token');
|
||||
const response = await axios.get(getUrl('rest/access-token'));
|
||||
this.setState({
|
||||
accessToken: response.data
|
||||
});
|
||||
|
@ -35,7 +35,7 @@ export default class API extends Component {
|
|||
}
|
||||
|
||||
async resetAccessToken() {
|
||||
const response = await axios.post('/rest/access-token-reset');
|
||||
const response = await axios.post(getUrl('rest/access-token-reset'));
|
||||
this.setState({
|
||||
accessToken: response.data
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue