Skip to content

Commit

Permalink
Remove responses where not required
Browse files Browse the repository at this point in the history
  • Loading branch information
smoogipoo committed Jan 22, 2025
1 parent 3fe6517 commit e56ca97
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Http/Controllers/InterOp/Multiplayer/RoomsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@ public function join(string $id, string $userId)
$room->assertCorrectPassword(get_string(request('password')));
$room->join($user);

return $room->getKey();
return response(null, 204);
}

public function part(string $id, string $userId)
{
$user = User::findOrFail($userId);
$room = Room::findOrFail($id);

return $room->part($user);
$room->part($user);

return response(null, 204);
}

public function store()
Expand Down

0 comments on commit e56ca97

Please sign in to comment.