|
@ -258,53 +258,33 @@ def userlist(): |
|
|
return do_userlist(request) |
|
|
return do_userlist(request) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@app.route('/jump/user/add', methods=['GET', 'POST']) |
|
|
|
|
|
def add_user(): |
|
|
|
|
|
|
|
|
# user动态路由 |
|
|
|
|
|
@app.route('/jump/user/<op>', methods=['GET', 'POST']) |
|
|
|
|
|
def user_op(op): |
|
|
|
|
|
if op == "add": |
|
|
return do_add_user(request) |
|
|
return do_add_user(request) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@app.route('/jump/user/del', methods=['GET', 'POST']) |
|
|
|
|
|
def del_user(): |
|
|
|
|
|
|
|
|
elif op == "del": |
|
|
return do_del_user(request) |
|
|
return do_del_user(request) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@app.route('/jump/user/modify', methods=['GET', 'POST']) |
|
|
|
|
|
def modify_user(): |
|
|
|
|
|
|
|
|
elif op == "modify": |
|
|
return do_modify_user(request) |
|
|
return do_modify_user(request) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@app.route('/jump/user/hosts', methods=['GET', 'POST']) |
|
|
|
|
|
def userhostlist(): |
|
|
|
|
|
|
|
|
elif op == "hosts": |
|
|
return do_userhostlist(request) |
|
|
return do_userhostlist(request) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@app.route('/jump/host/add', methods=['GET', 'POST']) |
|
|
|
|
|
def add_host(): |
|
|
|
|
|
|
|
|
# host动态路由 |
|
|
|
|
|
@app.route('/jump/host/<op>', methods=['GET', 'POST']) |
|
|
|
|
|
def host_op(op): |
|
|
|
|
|
if op == "add": |
|
|
return do_add_host(request) |
|
|
return do_add_host(request) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@app.route('/jump/host/del', methods=['GET', 'POST']) |
|
|
|
|
|
def del_host(): |
|
|
|
|
|
|
|
|
elif op == "del": |
|
|
return do_del_host(request) |
|
|
return do_del_host(request) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@app.route('/jump/host/adduser', methods=['GET', 'POST']) |
|
|
|
|
|
def host_adduser(): |
|
|
|
|
|
|
|
|
elif op == "adduser": |
|
|
return do_host_adduser(request) |
|
|
return do_host_adduser(request) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@app.route('/jump/host/deluser', methods=['GET', 'POST']) |
|
|
|
|
|
def host_deluser(): |
|
|
|
|
|
|
|
|
elif op == "deluser": |
|
|
return do_host_deluser(request) |
|
|
return do_host_deluser(request) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@app.route('/jump/host/modifyuser', methods=['GET', 'POST']) |
|
|
|
|
|
def host_modifyuser(): |
|
|
|
|
|
|
|
|
elif op == "modifyuser": |
|
|
return do_host_modifyuser(request) |
|
|
return do_host_modifyuser(request) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@app.route('/jump/host/users', methods=['GET', 'POST']) |
|
|
|
|
|
def hostuserlist(): |
|
|
|
|
|
|
|
|
elif op == "users": |
|
|
return do_hostuserlist(request) |
|
|
return do_hostuserlist(request) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|