mirror of
https://github.com/thib8956/tic-tac-toe-ws.git
synced 2025-08-24 00:11:56 +00:00
Initial commit
This commit is contained in:
11
serve.py
Normal file
11
serve.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import http.server
|
||||
|
||||
HandlerClass = http.server.SimpleHTTPRequestHandler
|
||||
|
||||
# Patch in the correct extensions
|
||||
HandlerClass.extensions_map['.js'] = 'text/javascript'
|
||||
HandlerClass.extensions_map['.mjs'] = 'text/javascript'
|
||||
|
||||
# Run the server (like `python -m http.server` does)
|
||||
http.server.test(HandlerClass, port=8000)
|
||||
|
Reference in New Issue
Block a user