convert the following routes to node js routes. i will create a file in the routes folder and paste them there and call the routes in main server.js. no unnecessary details.
@app.route('/cart/remove/<int:cart_item_id>', methods=['DELETE'])
@jwt_required()
def remove_from_cart(cart_item_id):
    current_user = get_jwt_identity()
    user = User.query.get(current_user['id'])
    cart = Cart.query.filter_by(user_id=user.id).first()

    if not cart:
        return jsonify({'message': 'Cart is empty'}), 200
    
    cart_item = CartItem.query.get_or_404(cart_item_id)

    if cart_item.cart_id != cart.id:
        return jsonify({'message': 'Item not found in your cart'}), 404

    db.session.delete(cart_item)
    db.session.commit()

    return jsonify({'message': 'Item removed from cart'}), 200
@app.route('/checkout', methods=['POST'])
@jwt_required()
def checkout():
    current_user = get_jwt_identity()
    user = User.query.get(current_user['id'])
    cart = user.cart

    if not cart:
        return jsonify({'message': 'Cart not found'}), 404

    cart_items = CartItem.query.filter_by(cart_id=cart.id).all()
    if not cart_items:
        return jsonify({'message': 'Cart is empty'}), 400

    total_amount = sum(item.quantity * item.product.price for item in cart_items)

    order = Order(user_id=user.id, total_amount=total_amount)
    db.session.add(order)
    db.session.commit()

    for item in cart_items:
        order_item = OrderItem(order_id=order.id, product_id=item.product_id, quantity=item.quantity, price=item.product.price)
        db.session.add(order_item)
        db.session.delete(item)

    db.session.commit()

    return jsonify({'message': 'Order placed successfully', 'order_id': order.id}), 201

@app.route('/order/<int:order_id>', methods=['GET'])
@jwt_required()
def get_order(order_id):
    current_user = get_jwt_identity()
    user = User.query.get(current_user['id'])
    order = Order.query.filter_by(id=order_id, user_id=user.id).first()

    if not order:
        return jsonify({'message': 'Order not found'}), 404

    order_items = OrderItem.query.filter_by(order_id=order.id).all()
    items = [{'product_id': item.product_id, 'product_name': item.product.name, 'quantity': item.quantity, 'price': item.price} for item in order_items]

    return jsonify({
        'order_id': order.id,
        'total_amount': order.total_amount,
        'status': order.status,
        'items': items,
        'created_at': order.created_at,
        'updated_at': order.updated_at
    })

@app.route('/orders', methods=['GET'])
@jwt_required()
def list_orders():
    current_user = get_jwt_identity()
    user = User.query.get(current_user['id'])
    orders = Order.query.filter_by(user_id=user.id).all()

    orders_list = []
    for order in orders:
        order_items = OrderItem.query.filter_by(order_id=order.id).all()
        items = [{'product_id': item.product_id, 'product_name': item.product.name, 'quantity': item.quantity, 'price': item.price} for item in order_items]
        orders_list.append({
            'order_id': order.id,
            'total_amount': order.total_amount,
            'status': order.status,
            'items': items,
            'created_at': order.created_at,
            'updated_at': order.updated_at
        })

    return jsonify({'orders': orders_list})