15 phase 3 tournament add

This commit is contained in:
2026-03-06 17:31:13 +00:00
parent 08c5a8387f
commit 8fb576afc7
7 changed files with 191 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ from core.redis import acquire_seat_lock, release_seat_lock
from api.routers.auth import router as auth_router
from api.routers.webhooks import router as webhooks_router
from api.routers.tickets import router as tickets_router
from api.routers.tournaments import router as tournaments_router
app = FastAPI(title="Ticketing System API")
@@ -24,6 +25,7 @@ app.add_middleware(
app.include_router(auth_router)
app.include_router(webhooks_router)
app.include_router(tickets_router)
app.include_router(tournaments_router)
@app.post("/api/seats/{seat_id}/lock", status_code=status.HTTP_200_OK)
async def lock_seat(seat_id: int, user_id: int, db: AsyncSession = Depends(get_db)):