Skip to content

Commit 4a1b84e

Browse files
committed
more testing symlinks
1 parent 732a153 commit 4a1b84e

File tree

6 files changed

+1758
-1
lines changed

6 files changed

+1758
-1
lines changed

air_delivery

Lines changed: 0 additions & 1 deletion
This file was deleted.

air_delivery/host.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import http.server
2+
import socketserver
3+
4+
PORT = 80
5+
6+
7+
class Handler(http.server.SimpleHTTPRequestHandler):
8+
def do_GET(self):
9+
print(self.path)
10+
if self.path.startswith("/?") or self.path in ["/", "/pico-window.js", "/pico8-gpio-listener.js", "/index.js"]:
11+
super().do_GET()
12+
# else:
13+
# raise Exception(f"Path {self.path} denied")
14+
15+
16+
with socketserver.TCPServer(("", PORT), Handler) as httpd:
17+
print("serving at port", PORT)
18+
httpd.serve_forever()

0 commit comments

Comments
 (0)