added a findbyid route
changed var syntax error