Configuring the custom endpoint