update endpoints + webmentions
This commit is contained in:
parent
1dd26b9a4f
commit
1be36879fd
13 changed files with 122 additions and 28 deletions
13
src/_data/webmentions.js
Normal file
13
src/_data/webmentions.js
Normal 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,
|
||||
}
|
||||
}
|
Reference in a new issue