adds a call to the Rails API for all posts in the app/assets/batman posts controller index action