Beispiel #1
0
def api_get_user_hosts_by_id(id):
    user = users.get(id)
    data = users.get_user_hosts(user)
    return jsonify(dict(rc=0, data=data))
Beispiel #2
0
def api_get_user_hosts_by_id(id):
    user = users.get(id)
    data = users.get_user_hosts(user)
    return jsonify(dict(rc=0, data=data))
Beispiel #3
0
def api_hosts():
    offset = request.args.get("offset", None, type=int)
    limit = request.args.get("limit", None, type=int)
    data = users.get_user_hosts(g.user, offset=offset, limit=limit)
    return jsonify(dict(rc=0, data=data))
Beispiel #4
0
def api_hosts():
    offset = request.args.get("offset", None, type=int)
    limit = request.args.get("limit", None, type=int)
    data = users.get_user_hosts(g.user, offset=offset, limit=limit)
    return jsonify(dict(rc=0, data=data))