#!/usr/bin/env python3
# Minimal HTTP server for the POC.
import http.server, socketserver, os

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

class H(http.server.SimpleHTTPRequestHandler):
    extensions_map = {
        **http.server.SimpleHTTPRequestHandler.extensions_map,
        '.webm': 'video/webm',
        '.html': 'text/html',
    }

with socketserver.TCPServer(('127.0.0.1', PORT), H) as httpd:
    print(f'serving on http://localhost:{PORT}/poc.html')
    httpd.serve_forever()
