fix(room): change the scope of get room API from lazer to public

This commit is contained in:
MingxuanGame
2025-09-14 04:56:27 +00:00
parent e553b0cc40
commit c4f002fd45

View File

@@ -167,7 +167,7 @@ async def get_room(
default="", default="",
description=("房间分类NORMAL 普通歌单模式房间 / REALTIME 多人游戏房间 / DAILY_CHALLENGE 每日挑战 (可选)"), description=("房间分类NORMAL 普通歌单模式房间 / REALTIME 多人游戏房间 / DAILY_CHALLENGE 每日挑战 (可选)"),
), ),
current_user: User = Security(get_client_user), current_user: User = Security(get_current_user, scopes=["public"]),
redis: Redis = Depends(get_redis), redis: Redis = Depends(get_redis),
): ):
db_room = (await db.exec(select(Room).where(Room.id == room_id))).first() db_room = (await db.exec(select(Room).where(Room.id == room_id))).first()