From 3182c192dc35cf0561d7608f65867da39ad9538c Mon Sep 17 00:00:00 2001 From: UltraQbik Date: Tue, 20 Aug 2024 00:10:11 +0300 Subject: Change file dislocation --- index.html | 48 ------------------------------------------------ main.py | 6 +++--- page/favicon.ico | Bin 318 -> 0 bytes page/robots.txt | 2 -- www/favicon.ico | Bin 0 -> 318 bytes www/index.html | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ www/robots.txt | 2 ++ 7 files changed, 53 insertions(+), 53 deletions(-) delete mode 100644 index.html delete mode 100644 page/favicon.ico delete mode 100644 page/robots.txt create mode 100644 www/favicon.ico create mode 100644 www/index.html create mode 100644 www/robots.txt diff --git a/index.html b/index.html deleted file mode 100644 index d860e13..0000000 --- a/index.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - The YES's Page - - - -
Welcome To The Mighty HTML Page
-
-
-

What is this?

-

> This is an HTML page!

-

> It exists!

-
-
-

Why does this exist?

-

> Funny haha

-

> I'm learning how to webpage from nothing

-
-
-

What is it running?

-

> This server is run by the shitty python code I wrote

-

> Server does not use flask or any other similar python web frameworks

-

> It primarily uses standard python libraries, with 2 libraries being an exception

-

> aiofiles - for asynchronous file I/O

-

> htmlmin - for making html page slightly smaller (along with gzip)

-
-
-

Where can I see the shitty python code you wrote?

-

> You can check the shitty python code I wrote at my github

-

> here's comically large button to help you navigate to there

-

- -

-
-
-

Useless button section?

-

- -

-
-
- - - 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/page/favicon.ico deleted file mode 100644 index 5f90164..0000000 Binary files a/page/favicon.ico and /dev/null differ diff --git a/page/robots.txt b/page/robots.txt deleted file mode 100644 index 1f53798..0000000 --- a/page/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Disallow: / diff --git a/www/favicon.ico b/www/favicon.ico new file mode 100644 index 0000000..5f90164 Binary files /dev/null and b/www/favicon.ico differ diff --git a/www/index.html b/www/index.html new file mode 100644 index 0000000..d860e13 --- /dev/null +++ b/www/index.html @@ -0,0 +1,48 @@ + + + + The YES's Page + + + +
Welcome To The Mighty HTML Page
+
+
+

What is this?

+

> This is an HTML page!

+

> It exists!

+
+
+

Why does this exist?

+

> Funny haha

+

> I'm learning how to webpage from nothing

+
+
+

What is it running?

+

> This server is run by the shitty python code I wrote

+

> Server does not use flask or any other similar python web frameworks

+

> It primarily uses standard python libraries, with 2 libraries being an exception

+

> aiofiles - for asynchronous file I/O

+

> htmlmin - for making html page slightly smaller (along with gzip)

+
+
+

Where can I see the shitty python code you wrote?

+

> You can check the shitty python code I wrote at my github

+

> here's comically large button to help you navigate to there

+

+ +

+
+
+

Useless button section?

+

+ +

+
+
+ + + diff --git a/www/robots.txt b/www/robots.txt new file mode 100644 index 0000000..1f53798 --- /dev/null +++ b/www/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: / -- cgit 1.4.1