diff --git a/open_bnet_banner.png b/assets/open_bnet_banner.png similarity index 100% rename from open_bnet_banner.png rename to assets/open_bnet_banner.png diff --git a/templates/table.css b/assets/table.css similarity index 100% rename from templates/table.css rename to assets/table.css diff --git a/obnet.py b/obnet.py index 7e5b5eb..b6cf5d1 100644 --- a/obnet.py +++ b/obnet.py @@ -10,6 +10,7 @@ import json import sys import time from os import environ as env +from os.path import join as path_join from socket import AddressFamily, SocketKind, socket from threading import Lock @@ -127,7 +128,7 @@ def raw(): @app.route("/assets/", methods=["GET"]) def assets(file): - return send_file(file) + return send_file(path_join("assets", file)) @app.route("/api", methods=["GET"]) diff --git a/templates/channels.html b/templates/channels.html index 23ddacc..5cd0562 100644 --- a/templates/channels.html +++ b/templates/channels.html @@ -1,7 +1,7 @@ {{ networkName }} - +
diff --git a/templates/index.html b/templates/index.html index 43dca21..2fc5c3a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,7 +1,7 @@ {{ networkName }} - +