@app.route("/ports/<pattern>", methods=["GET"])
def specific_ports(pattern):
    """Returns all ports matching the given pattern"""
    like = request.args in "like"
    return jsonify({"ports": get_ports(pattern, like)})
dataset/ETHPy150Open ncrocfer/whatportis/whatportis/server.py/specific_ports/swapped operands of `in`