import axios from "axios"; const create = async (payload) => { const { data } = await axios.post("/api/room/create", payload); return data; }; const join = async (payload) => { const { data } = await axios.put("/api/room/join", payload); return data; }; const roomApi = { create, join }; export default roomApi;