flask add url rule with methods code example Example: flask add_url_rule url_for(..., _external=True)