mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2025-09-08 05:35:03 +02:00
🎨 style(new!): add new ui vue.js
Signed-off-by: Abhiraj Roy <157954129+iconized@users.noreply.github.com>
This commit is contained in:
14
utils/github-api.js
Normal file
14
utils/github-api.js
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
/**
|
||||
* Get a gist from Github API by gist ID
|
||||
* @param {*} gistId
|
||||
* @returns
|
||||
*/
|
||||
const getGistById = async (gistId) => {
|
||||
const response = await fetch('https://api.github.com/gists/' + gistId)
|
||||
return response.json()
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getGistById
|
||||
}
|
Reference in New Issue
Block a user