wrap server's function to show some info when user register a endpoint