input: Write a python function to create a Flask route that accepts JSON data via POST method and prints the data to the console.
  assert post_data({"name": "Alice", "age": 30}) == 'Data printed in console'
  assert post_data({"product": "Laptop", "price": 1200.99}) == 'Data printed in console'
  assert post_data({"status": "active", "id": 12345}) == 'Data printed in console'
output: from flask import Flask, request, jsonify
  
  app = Flask(__name__)
  
  @app.route('/post-data', methods=['POST'])
  def post_data():
      data = request.get_json()
      print(data)
      return 'Data printed in console'
  
  if __name__ == '__main__':
      app.run(debug=True)