Defining and registering endpointsΒΆ