creted new api call to get history from provided module
This commit is contained in:
parent
598d11c5c7
commit
dcdfd239d8
@ -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 };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user