Modularized the base URL for the API