Move view to view.html for easier routing in nginx

This commit is contained in:
Oskar Winkels 2020-12-03 23:34:14 +01:00
parent b753feaaeb
commit 02a07bf76a
3 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ if __name__ == "__main__":
@app.route('/view')
def get_view():
return app.send_static_file('viewdata.html')
return app.send_static_file('view.html')
@app.route('/<path:path>')
def get_file(path):

View File

@ -10,7 +10,7 @@ server {
location / {
# First attempt to serve request as file
# If no such file, show index to allow for client side routing
try_files $uri $uri/ @api;
try_files $uri $uri/ $uri.html @api;
}
location @api {