added article.py
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user