updates api json endpoint to local /api call