adds api logic to controller, displays raw posts on show