This commit is contained in:
张鑫
2025-10-30 15:11:34 +08:00
parent 0154661acb
commit e02a6c46fa
3 changed files with 25 additions and 0 deletions

11
main.py Normal file
View File

@@ -0,0 +1,11 @@
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def read_root():
return {"message": "Hello World"}
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=3000)