changed /food to /state to reflect updates in server routes