Got file end point working