from fastapi import FastAPI
from fastapi.responses import HTMLResponse

app = FastAPI()


@app.get("/hello", response_class=HTMLResponse)
def hello_world() -> str:
    """Serve a minimal Hello World HTML page."""
    return """<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Hello World</title>
  </head>
  <body>
    <main>
      <h1>Hello World</h1>
      <p>This page is served by FastAPI.</p>
    </main>
  </body>
</html>"""
