fixed api in routes dir to match Ammon's suggestions