fixed URL routes to API