Added global study groups rendering

This commit is contained in:
Keannu Christian Bernasol 2023-09-24 21:26:15 +08:00
parent 1bd07f9edd
commit ed19150d53
2 changed files with 113 additions and 1 deletions

View file

@ -302,7 +302,20 @@ export async function GetStudyGroupListFiltered() {
return instance
.get("/api/v1/study_groups/near/", config)
.then((response) => {
console.log("Data:", response.data);
return [true, response.data];
})
.catch((error) => {
let error_message = ParseError(error);
return [false, error_message];
});
}
export async function GetStudyGroupList() {
const config = await GetConfig();
return instance
.get("/api/v1/study_groups/", config)
.then((response) => {
console.log("test", response.data);
return [true, response.data];
})
.catch((error) => {