Define the api endpoint in a single place