added endroutes for node