def user(login): if request.method == "GET": return route_methods.login(login, request.args.get("pwd")) if request.method == "PUT": return route_methods.new_user(login, request.json) if request.method == "DELETE": return jsonify(status="not yet implemented", info="user deletion not yet implmented") if request.method == "POST": return jsonify(status="not yet implemented", info="user modification not yet implmented")
def login(): return route_methods.login(request.args.get("login"), request.args.get("pwd"))