Adds api url routing.
Adds api url routing.