added roomLogo api methods
This commit is contained in:
parent
95be5666fd
commit
f0351ceec0
@ -167,3 +167,28 @@ export function getTags() {
|
||||
return res;
|
||||
});
|
||||
}
|
||||
|
||||
export function uploadRoomLogo(data) {
|
||||
const options = {
|
||||
method: "post",
|
||||
url: `/files/logos`,
|
||||
data,
|
||||
};
|
||||
|
||||
return request(options).then((res) => {
|
||||
console.log(res);
|
||||
return res;
|
||||
});
|
||||
}
|
||||
|
||||
export function addLogoToRoom(id, data) {
|
||||
const options = {
|
||||
method: "post",
|
||||
url: `/files/rooms/${id}/logo`,
|
||||
data,
|
||||
};
|
||||
|
||||
return request(options).then((res) => {
|
||||
return res;
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user