24 lines
409 B
Python
24 lines
409 B
Python
from flask import Flask , render_template , jsonify
|
|
from vectData import get_data
|
|
from flask_cors import CORS
|
|
|
|
|
|
app = Flask(__name__)
|
|
|
|
CORS(app)
|
|
|
|
@app.route('/')
|
|
def index() :
|
|
return render_template("index.html")
|
|
|
|
|
|
@app.route('/article/one')
|
|
def articleone():
|
|
return render_template("one.html")
|
|
|
|
|
|
@app.route('/article/two')
|
|
def articletwo():
|
|
return render_template("two.html")
|
|
|
|
app.run(debug=True) |