Skip to content

設定ファイルの詳細

FastAPIの設定ファイルの詳細を以下に示します。

main.pyファイルは、FastAPIアプリケーションのエントリーポイントです。

from fastapi import FastAPI
app = FastAPI()
@app.get("/")
async def root():
return {"message": "Hello World"}