app/apps.py
def redirect_url(key):
    """
    redirect to related url with key

    :params: key : string
    """

    url = expand(key)
    if url:
        return redirect(url, 301)
    return jsonify({"msg": "key not found!"})

    redirect to related url with key

    :params: key : string
    
redirect to related url with key
redirect to related url with key
def redirect_url(key):
    url = expand(key)
    if url:
        return redirect(url, 301)
    return jsonify({"msg": "key not found!"})
def redirect_url ( key ) : url = expand ( key ) if url : return redirect ( url , 301 ) return jsonify ( { "msg" : "key not found!" } )
redirect to related url with key
redirect to related url with key
"""
    redirect to related url with key

    :params: key : string
    """
key
params
key : string
key : string