v.0.11.3 api-server public port 8000

This commit is contained in:
tiijay
2025-11-21 19:07:41 +00:00
parent c27b97fc71
commit 115e402b0d
5 changed files with 27 additions and 19 deletions

View File

@@ -7,13 +7,13 @@ from app.models import Item, dummy_items
app = FastAPI(title="FastAPI Server", version="1.0.0")
# CORS middleware to allow client requests
# app.add_middleware(
# CORSMiddleware,
# # allow_origins=["http://localhost:3000", "http://client:3000"],
# allow_credentials=True,
# allow_methods=["*"],
# allow_headers=["*"],
# )
app.add_middleware(
CORSMiddleware,
# allow_origins=["http://localhost:3000", "http://client:3000"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
@app.get("/")