feat: 房间创建者管理权限——锁定房间、踢人、结束投票

This commit is contained in:
2026-02-24 21:01:24 +08:00
parent fc0a2a018b
commit 07ffe42176
11 changed files with 507 additions and 9 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ export default function LandingPage() {
const res = await fetch("/api/room/create", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ ...coords, radius, priceRange, cuisine }),
body: JSON.stringify({ ...coords, radius, priceRange, cuisine, userId: getUserId() }),
});
if (!res.ok) {