Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | /**
* The public reads of a Flow Space (space, page, "load more" of an item
* list), through the spaces CDN: a cache of a minute in front of the API
* (flows-api Flows-Spaces-Cdn-Stack, docs/architecture/FLOW_SPACE.md
* "Caching the public reads").
*
* Never with the user's token nor the tab's flow: the responses are the same
* for everyone, so nothing identifies the visitor (and no CORS preflight is
* needed). The join form, whose answer depends on who asks, and the members'
* reads stay on `api`.
*/
import axios from 'axios'
const spacesApi = axios.create({
baseURL:
import.meta.env.VITE_SPACES_API_URL ||
import.meta.env.VITE_API_URL ||
'https://api.flows.browsway.com'
})
export default spacesApi
|