1import axios from 'axios';
2
3let one = "https://api.storyblok.com/v1/cdn/stories/health?version=published&token=wANpEQEsMYGOwLxwXQ76Ggtt"
4let two = "https://api.storyblok.com/v1/cdn/datasources/?token=wANpEQEsMYGOwLxwXQ76Ggtt"
5let three = "https://api.storyblok.com/v1/cdn/stories/vue?version=published&token=wANpEQEsMYGOwLxwXQ76Ggtt"
6
7const requestOne = axios.get(one);
8const requestTwo = axios.get(two);
9const requestThree = axios.get(three);
10
11axios.all([requestOne, requestTwo, requestThree]).then(axios.spread((...responses) => {
12 const responseOne = responses[0]
13 const responseTwo = responses[1]
14 const responesThree = responses[2]
15 // use/access the results
16})).catch(errors => {
17 // react on errors.
18})
19