add api url to routes