Files
TeraHz/frontend/FlaskModule.py
ANormalPerson1 9677273f55 Attempt at doing json
I fucked up big time. I have attempted to make a custom made chart, while, to my knowledge, one is readily available and more easily incorporated to the website design.
2019-03-21 21:18:05 +01:00

15 lines
345 B
Python

from flask import Flask
app = Flask(__name__)
@app.route('/', methods = ['GET', 'POST'])
def index():
value = request.json['key']
return value
if __name__ == '__main__':
app.run
test = open("JsonJs", "r")
req = requests.post('C:/Users/Janez%20Dolzan/Documents/Python%20projects/Spektrometer/GitHub/TeraHz/frontend/website.html')