From 3ad838fd2ce2d37da8532297898c8150948788cd Mon Sep 17 00:00:00 2001 From: Agent Date: Sun, 17 May 2026 07:28:41 +0000 Subject: [PATCH] Initial commit: FastAPI Hello World API --- main.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 main.py 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