mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2026-05-12 13:48:40 +02:00
🛠️ build(nuxt): shift astro to nuxt
This commit is contained in:
@@ -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