move ENDPOINT to constants