move api urls to config