#!/usr/bin/env python3
# 简单静态文件服务器，托管前端页面，端口 8080
import http.server, socketserver, os

PORT = 8080
os.chdir(os.path.dirname(os.path.abspath(__file__)))

class Handler(http.server.SimpleHTTPRequestHandler):
    pass  # 使用默认日志记录

with socketserver.TCPServer(("127.0.0.1", PORT), Handler) as httpd:
    print(f"Frontend running on http://0.0.0.0:{PORT}")
    httpd.serve_forever()
