mirror of
https://github.com/webui-dev/webui.git
synced 2024-09-11 14:06:09 +03:00
11 lines
242 B
Python
11 lines
242 B
Python
import http.server
|
|
import socketserver
|
|
|
|
PORT = 8080
|
|
|
|
Handler = http.server.SimpleHTTPRequestHandler
|
|
|
|
with socketserver.TCPServer(("", PORT), Handler) as httpd:
|
|
print(f"Server started at http://localhost:{PORT}")
|
|
httpd.serve_forever()
|