refactored endpoint, get project by id