end points set up now working on routes