commit 3ad838fd2ce2d37da8532297898c8150948788cd Author: Agent Date: Sun May 17 07:28:41 2026 +0000 Initial commit: FastAPI Hello World API diff --git a/main.py b/main.py new file mode 100644 index 0000000..fc71224 --- /dev/null +++ b/main.py @@ -0,0 +1,8 @@ +from fastapi import FastAPI, Request + +app = FastAPI() + +@app.get("/") +async def read_root(request: Request): + client_host = request.client.host + return {"message": "ハローワールド!!", "client_ip": client_host} \ No newline at end of file