Files
2024-DEV-BUT3/src/api/room.js

15 lines
314 B
JavaScript
Raw Normal View History

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
};