Fix for reverse proxies
This commit is contained in:
parent
d561350082
commit
6275db279d
@ -39,6 +39,7 @@ ROUTE_TYPE = 0
|
|||||||
timezone = pytz.timezone('Australia/Melbourne')
|
timezone = pytz.timezone('Australia/Melbourne')
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
|
@app.route('/index')
|
||||||
def index():
|
def index():
|
||||||
return flask.render_template('index.html')
|
return flask.render_template('index.html')
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<ul>
|
<ul>
|
||||||
{% for stop_id, stop_name in stations %}
|
{% for stop_id, stop_name in stations %}
|
||||||
<li><a href="/?stop_id={{stop_id}}">{{stop_name}}</a></li>
|
<li><a href="index?stop_id={{stop_id}}">{{stop_name}}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</body>
|
</body>
|
||||||
|
Reference in New Issue
Block a user