import apiClient from "@/utils/axios.js";

export const fetchPublicRooms = async () => {
  const response = await apiClient.get("/api/chat/rooms");
  return response.data; // expecting array of { id, title, ... }
};
