Added method for registering endpoint directly