15 phase 3 tournament add
This commit is contained in:
@@ -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)):
|
||||
|
||||
Reference in New Issue
Block a user