Skip to content

Commit

Permalink
more testing symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
qwint committed Jan 9, 2025
1 parent 732a153 commit 4a1b84e
Show file tree
Hide file tree
Showing 6 changed files with 1,758 additions and 1 deletion.
1 change: 0 additions & 1 deletion air_delivery

This file was deleted.

18 changes: 18 additions & 0 deletions air_delivery/host.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import http.server
import socketserver

PORT = 80


class Handler(http.server.SimpleHTTPRequestHandler):
def do_GET(self):
print(self.path)
if self.path.startswith("/?") or self.path in ["/", "/pico-window.js", "/pico8-gpio-listener.js", "/index.js"]:
super().do_GET()
# else:
# raise Exception(f"Path {self.path} denied")


with socketserver.TCPServer(("", PORT), Handler) as httpd:
print("serving at port", PORT)
httpd.serve_forever()
Loading

0 comments on commit 4a1b84e

Please sign in to comment.