FastAPI2604_HF / app.py
kimsaeromi's picture
.
c4d1e86
raw
history blame contribute delete
452 Bytes
from fastapi import FastAPI
from routers import test_router, testdb_router, user_router
import uvicorn
app = FastAPI()
app.include_router(test_router.router)
app.include_router(testdb_router.router)
app.include_router(user_router.router)
@app.get("/")
def home():
return {"message": "FastAPI 鞁ろ枆 靹标车"}
if __name__ == "__main__":
uvicorn.run(
"app:app",
host="127.0.0.1",
port=8000,
reload=True
)