dinner_vote/start.py

23 lines
471 B
Python

import os
from flask import redirect, send_from_directory
import threading
from dinner import *
from session import app
lock = threading.Lock()
@app.route('/')
def index():
return redirect('dinner')
# return render_template('index.html')
@app.route('/favicon.ico')
def favicon():
return send_from_directory(os.path.join(app.root_path, 'static'), 'fd-logo.png')
if __name__ == '__main__':
app.run(host="0.0.0.0", port=80, debug=True, threaded=True)