diff --git a/ftracker/__main__.py b/ftracker/__main__.py index 3cfb9de..c1ce080 100644 --- a/ftracker/__main__.py +++ b/ftracker/__main__.py @@ -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('/') def get_file(path): diff --git a/res/ftracker.nginx.conf b/res/ftracker.nginx.conf index e939e95..5926bf5 100644 --- a/res/ftracker.nginx.conf +++ b/res/ftracker.nginx.conf @@ -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 { diff --git a/web/viewdata.html b/web/view.html similarity index 100% rename from web/viewdata.html rename to web/view.html