Return main HTML page
from fastapi import FastAPI, Response
app = FastAPI()
@app.get("/")
async def root():
data = '<a href="/https/python.code-maven.com/hello">hello</a>'
return Response(content=data, media_type="text/html")
@app.get("/hello")
async def hello():
return {"message": "Hello World"}