Moving api urls to its own file