changed api to work with todos for ember front end