Skip to content
Snippets Groups Projects
Commit 94b1d070 authored by Gilgard's avatar Gilgard
Browse files

updated rating to average

parent d0ee5ec0
No related branches found
No related tags found
1 merge request!32Community member list
...@@ -71,3 +71,16 @@ export function getOwnerRating(userid) { ...@@ -71,3 +71,16 @@ export function getOwnerRating(userid) {
console.error(error); console.error(error);
}); });
} }
export function getAverageRating(userid) {
return axios
.get(API_URL + "rating/" + userid + "/average", {
headers: tokenHeader(),
})
.then((response) => {
return response.data;
})
.catch((error) => {
console.error(error);
});
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment