creted new api call to get history from provided module

This commit is contained in:
mushka 2022-09-26 10:37:57 +03:00
parent 598d11c5c7
commit dcdfd239d8

View File

@ -42,6 +42,17 @@ export function getRoomMembers(id) {
});
}
export function getHistory(module, id) {
const options = {
method: "get",
url: `/feed/filter?module=${module}&withRelated=true&id=${id}`,
};
return request(options).then((res) => {
return res;
});
}
export function getRoomHistory(id) {
const options = {
method: "get",
@ -53,6 +64,17 @@ export function getRoomHistory(id) {
});
}
export function getFileHistory(id) {
const options = {
method: "get",
url: `/feed/filter?module=files&withRelated=true&id=${id}`,
};
return request(options).then((res) => {
return res;
});
}
export function createRoom(data) {
const options = { method: "post", url: `/files/rooms`, data };