update endpoints + webmentions

This commit is contained in:
Cory Dransfeldt 2023-03-13 11:43:11 -07:00
parent 1dd26b9a4f
commit 1be36879fd
No known key found for this signature in database
13 changed files with 122 additions and 28 deletions

13
src/_data/webmentions.js Normal file
View file

@ -0,0 +1,13 @@
const EleventyFetch = require('@11ty/eleventy-fetch')
module.exports = async function () {
const url = 'https://utils.coryd.dev/api/webmentions'
const res = EleventyFetch(url, {
duration: '1d',
type: 'json',
})
const webmentions = await res
return {
mentions: webmentions.children,
}
}