docs: 🔥 added netlify

This commit is contained in:
Leifer Mendez
2022-12-28 20:51:28 +01:00
parent 5b796a163e
commit be39e8fd30
14 changed files with 7644 additions and 832 deletions

View File

@@ -0,0 +1,19 @@
/**
* GET API from Github
* @returns
*/
export const fetchGithub = async (token: string) => {
const data = await fetch(
`https://api.github.com/repos/codigoencasa/bot-whatsapp/contributors`,
{
method: 'GET',
headers: {
Accept: 'application/vnd.github+json',
'X-GitHub-Api-Version': '2022-11-28',
Authorization: `Bearer ${token}`,
},
}
)
const listUsers = data.json()
return listUsers
}