forked from danverstom/CMS-Web-Overlays
-
Notifications
You must be signed in to change notification settings - Fork 0
/
web_app.py
39 lines (28 loc) · 926 Bytes
/
web_app.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
35
36
37
38
39
from quart import render_template, Quart, jsonify
from secrets import token_urlsafe
from utils.config import *
app = Quart(__name__)
app.secret_key = token_urlsafe(32)
@app.route("/overlay")
async def overlay():
return await render_template("overlay.html")
@app.route("/")
async def home():
return await render_template("home.html")
@app.route("/starting_soon")
async def starting_soon():
return await render_template("starting_soon.html")
@app.route("/interval")
async def interval():
return await render_template("interval.html")
@app.route("/rosters")
async def rosters_page():
return await render_template("rosters.html")
@app.route("/team_win")
async def team_win_page():
return await render_template("team_win.html")
@app.route("/draft")
async def draft_page():
return await render_template("draft.html")
if __name__ == "__main__":
app.run(WEB_SERVER_HOSTNAME, WEB_SERVER_PORT)