Invoke update_wrapper to allow Flask to guess endpoint names.