What is the equivalent of ghost.url.api in API V2?

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.

Content API SDK docs are here:

https://docs.ghost.org/api/javascript/

With full docs for the Content API here:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.