Fix bug that resulted from setting the API on the same route object multiple times. The API would be overwritten in the case that a superclass' API routes were evaluated before a given API's routes. Dup the route object to avoid this.