tests & image-request on google & inspirobot & front

This commit is contained in:
2024-05-11 22:37:32 +02:00
parent 6602bfd408
commit 3f0db3f976
24 changed files with 1421 additions and 454 deletions

View File

@@ -2,7 +2,19 @@ import axios from "axios";
export const getRoom = async () => {
export const getRoom = async (_id) => {
try {
const response = await axios.get("/room", {_id});
console.log(response.data)
return response.data;
} catch (error) {
console.log("ERROR", error.response.data)
return error.response.data;
}
};
export const getRooms = async () => {
try {
const response = await axios.get("/room", {});
console.log(response.data)