This commit is contained in:
2024-04-04 09:28:19 +02:00
parent e1897ca11a
commit 7f9f95ecc2
7 changed files with 101 additions and 13 deletions

10
src/api/room.js Normal file
View File

@@ -0,0 +1,10 @@
import axios from "axios";
export const getRoom = async () => {
try {
const response = await axios.get("/room", {});
return response.data;
} catch (error) {
return error.response.data;
}
};