fixed issue with overlapping routes

A route ```/api/population``` also matched ```/api/population_by_year``` etc.