2024-04-04 09:28:19 +02:00
|
|
|
import axios from "axios";
|
|
|
|
|
2024-05-07 01:31:38 +02:00
|
|
|
|
|
|
|
|
2024-04-04 09:28:19 +02:00
|
|
|
export const getRoom = async () => {
|
2024-05-07 01:31:38 +02:00
|
|
|
try {
|
|
|
|
const response = await axios.get("/room", {});
|
|
|
|
console.log(response.data)
|
|
|
|
return response.data;
|
|
|
|
} catch (error) {
|
|
|
|
console.log("ERROR", error.response.data)
|
|
|
|
return error.response.data;
|
|
|
|
}
|
2024-04-04 09:28:19 +02:00
|
|
|
};
|