This repository has been archived on 2025-03-28. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coryd.dev-eleventy/src/_data/status.js
2023-12-21 13:31:57 -08:00

11 lines
299 B
JavaScript

import EleventyFetch from '@11ty/eleventy-fetch'
export default async function () {
const url = 'https://api.omg.lol/address/cory/statuses/'
const res = EleventyFetch(url, {
duration: '1h',
type: 'json',
}).catch()
const status = await res
return status.response['statuses'][0]
}