Adapt routes to latest API spec.