forked from Lucaman99/Starterhacks-2018
-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.py
34 lines (25 loc) · 760 Bytes
/
server.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import json
import time
import glob
import os
from shutil import copyfile
from flask import Flask, request, redirect, url_for, render_template
from werkzeug.utils import secure_filename
from IPython import embed
import logging
app = Flask(__name__)
ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'])
stream_handler = logging.StreamHandler()
stream_handler.setLevel(logging.WARNING)
app.logger.addHandler(stream_handler)
@app.route("/")
def main():
return render_template('dashboard.html')
@app.route("/healthhistory", methods=['POST', 'GET'])
def main():
print("reached!")
@app.route("/healthtraking", methods=['POST', 'GET'])
def main():
return render_template('')
if __name__ == "__main__":
app.run(debug = True, port=3000)