diff options
| author | UltraQbik <no1skill@yandex.ru> | 2024-08-20 00:10:11 +0300 |
|---|---|---|
| committer | UltraQbik <no1skill@yandex.ru> | 2024-08-20 00:10:11 +0300 |
| commit | 3182c192dc35cf0561d7608f65867da39ad9538c (patch) | |
| tree | e6f8bf1bca9761583b1a017bd1e9fa4ffe57b745 | |
| parent | fa7e3e4afacaf160d1de370e001acbe0d554a865 (diff) | |
| download | httpy-3182c192dc35cf0561d7608f65867da39ad9538c.tar.gz httpy-3182c192dc35cf0561d7608f65867da39ad9538c.zip | |
Change file dislocation
| -rw-r--r-- | main.py | 6 | ||||
| -rw-r--r-- | www/favicon.ico (renamed from page/favicon.ico) | bin | 318 -> 318 bytes | |||
| -rw-r--r-- | www/index.html (renamed from index.html) | 0 | ||||
| -rw-r--r-- | www/robots.txt (renamed from page/robots.txt) | 0 |
4 files changed, 3 insertions, 3 deletions
diff --git a/main.py b/main.py index 44c8d26..deb3f74 100644 --- a/main.py +++ b/main.py @@ -73,9 +73,9 @@ class HTMLServer: # list of allowed paths self.allowed_paths: dict[str, dict] = { - "/": {"path": "index.html", "encoding": "css/html"}, - "/robots.txt": {"path": "page/robots.txt", "encoding": "text"}, - "/favicon.ico": {"path": "page/favicon.ico", "encoding": "bin"}, + "/": {"path": "www/index.html", "encoding": "css/html"}, + "/robots.txt": {"path": "www/robots.txt", "encoding": "text"}, + "/favicon.ico": {"path": "www/favicon.ico", "encoding": "bin"}, "/css/styles.css": {"path": None, "encoding": "css/html"}, } diff --git a/page/favicon.ico b/www/favicon.ico index 5f90164..5f90164 100644 --- a/page/favicon.ico +++ b/www/favicon.ico Binary files differdiff --git a/index.html b/www/index.html index d860e13..d860e13 100644 --- a/index.html +++ b/www/index.html diff --git a/page/robots.txt b/www/robots.txt index 1f53798..1f53798 100644 --- a/page/robots.txt +++ b/www/robots.txt |