added article.py

This commit is contained in:
2024-01-06 08:17:05 +01:00
parent ae1c1902da
commit d4e99c7c5f
8 changed files with 329 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
from flask import Flask , render_template , jsonify
from vectData import get_data
from vectData import get_ready_data
from flask_cors import CORS
@@ -21,4 +21,9 @@ def articleone():
def articletwo():
return render_template("two.html")
@app.route('/data/get/news', methods=['GET'])
def takenews():
data = get_ready_data()
return jsonify(data)
app.run(debug=True)