endpoint now wraps $http or anything else
update all routes to use endpoint wrapper class