In API Version 0.1 there was an JavaScript helper function ghost.url.api
using which we ware able to fetch the data internally in the theme. There was no requirement of authentication.
What is the equivalent way to in API V2. I want to fetch all post within my theme’s JavaScript file using ajax.