Frontend api function for github contributers.
This commit is contained in:
@@ -332,6 +332,11 @@ const getWinnerByName = (name) => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const projectContributors = () => {
|
||||||
|
return fetch("/api/project/contributors")
|
||||||
|
.then(resp => resp.json())
|
||||||
|
}
|
||||||
|
|
||||||
export {
|
export {
|
||||||
statistics,
|
statistics,
|
||||||
colorStatistics,
|
colorStatistics,
|
||||||
@@ -365,5 +370,6 @@ export {
|
|||||||
postWineChosen,
|
postWineChosen,
|
||||||
historyAll,
|
historyAll,
|
||||||
historyByDate,
|
historyByDate,
|
||||||
getWinnerByName
|
getWinnerByName,
|
||||||
|
projectContributors
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user