a php redirect pointing our requests to the api on the server side + some minor changes to our model