mirror of
https://github.com/System-End/site.git
synced 2026-04-19 22:05:11 +00:00
12 lines
259 B
JavaScript
12 lines
259 B
JavaScript
export async function getGames() {
|
|
let games = await fetch(
|
|
'https://sprig.hackclub.com/api/gallery?new'
|
|
).then(res => res.json())
|
|
|
|
return games
|
|
}
|
|
|
|
export default async function Games(req, res) {
|
|
const games = await getGames()
|
|
res.json(games)
|
|
}
|