Hi Luke, thanks for your answer.
I can’t get my head around this. I’m trying to connect to an external API. After reading your post, I can imagine that I can only do this from the client and if i make endpoints in my sapper project these are typically server side routines, so those are not ok then?
However how can it be that some of the routes at this moment do work and others do not? Some of them even hold the exact same code
this one works: https://admiring-wilson-2ff0fe.netlify.app/Mobiel_API/locations/
this one does not https://admiring-wilson-2ff0fe.netlify.app/Mobiel_API/locations/geoJSON
although the code at those endpoints is exactly the same.