-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
32 lines (19 loc) · 637 Bytes
/
app.py
File metadata and controls
32 lines (19 loc) · 637 Bytes
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
from flask import Flask, render_template
import os
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html') # Theme selector
@app.route('/indexolive')
def index_olive():
return render_template('indexolive.html')
@app.route('/indexcute')
def index_cute():
return render_template('indexcute.html') # optional for pink version
@app.route('/indexBlocky')
def index_blocky():
return render_template('indexBlocky.html') # optional for blocky version
if __name__ == '__main__':
port = int(os.environ.get('PORT', 5000))
app.run(host='0.0.0.0', port=port)
print(app.url_map)