web-bdftopcf/server.py
2020-12-31 12:22:21 -06:00

12 lines
297 B
Python
Executable file

#!/usr/bin/env python3
import http.server
import socketserver
PORT = 4242
Handler = http.server.SimpleHTTPRequestHandler
Handler.extensions_map[".wasm"] = "application/wasm"
with socketserver.TCPServer(("", PORT), Handler) as httpd:
print("serving at port", PORT)
httpd.serve_forever()