From 554257434d77ef2eaeea4e4026d7b244f409bc90 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Mon, 11 Jan 2021 19:24:49 +0100 Subject: [PATCH] Frontend api function for github contributers. --- frontend/api.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/api.js b/frontend/api.js index ca17f6a..7e0e6ec 100644 --- a/frontend/api.js +++ b/frontend/api.js @@ -332,6 +332,11 @@ const getWinnerByName = (name) => { }) } +const projectContributors = () => { + return fetch("/api/project/contributors") + .then(resp => resp.json()) +} + export { statistics, colorStatistics, @@ -365,5 +370,6 @@ export { postWineChosen, historyAll, historyByDate, - getWinnerByName + getWinnerByName, + projectContributors };