Fix paths

This commit is contained in:
rany 2021-12-10 18:04:09 +02:00
parent c6288e6838
commit f0251c1473
5 changed files with 4 additions and 3 deletions

View File

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -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/<file>", methods=["GET"])
def assets(file):
return send_file(file)
return send_file(path_join("assets", file))
@app.route("/api", methods=["GET"])

View File

@ -1,7 +1,7 @@
<html>
<head>
<title>{{ networkName }}</title>
<link rel="stylesheet" href="table.css">
<link rel="stylesheet" href="/assets/table.css">
</head>
<body>
<center>

View File

@ -1,7 +1,7 @@
<html>
<head>
<title>{{ networkName }}</title>
<link rel="stylesheet" href="table.css">
<link rel="stylesheet" href="/assets/table.css">
</head>
<body>
<center>