Example #1
0
def link_list():
    db_links = link.get(user.current_user())
    links = []
    for db_link in db_links:
        links.append(dict(zip(['id', 'url'], db_link)))
    return jsonify(success=True,links=links)
Example #2
0
def list():
    if not user.current_user():
        abort(403)

    links = link.get(user.current_user())
    return render_template("list.html", links=links)