Fix for reverse proxies

This commit is contained in:
RunasSudo 2019-01-01 02:49:06 +11:00
parent d561350082
commit 6275db279d
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
2 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ ROUTE_TYPE = 0
timezone = pytz.timezone('Australia/Melbourne')
@app.route('/')
@app.route('/index')
def index():
return flask.render_template('index.html')

View File

@ -16,7 +16,7 @@
<body>
<ul>
{% 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 %}
</ul>
</body>