#!/usr/bin/env python3
"""Minimal HTTP server for the POC. Serves index.html and sb.html on :8080."""
import http.server
import os
import socketserver

PORT = 8080

class ReusableTCPServer(socketserver.TCPServer):
    allow_reuse_address = True

if __name__ == "__main__":
    os.chdir(os.path.dirname(os.path.abspath(__file__)))
    handler = http.server.SimpleHTTPRequestHandler
    with ReusableTCPServer(("127.0.0.1", PORT), handler) as httpd:
        print(f"Serving POC on http://127.0.0.1:{PORT}/index.html", flush=True)
        httpd.serve_forever()
