jam-my-stack/src/webmention/send.js

17 lines
375 B
JavaScript
Raw Normal View History

2021-03-17 22:15:43 +01:00
const got = require('got')
const fsp = require('fs').promises
const dayjs = require('dayjs')
2022-04-25 09:26:26 +02:00
async function sendWebmentions(domain, config) {
const url = `${config.endpoint}/webmention/${domain}/${config.token}`
2021-03-17 22:15:43 +01:00
// this is an async call and will return 202 to say "started sending them out".
const result = await got.put(url)
}
module.exports = {
sendWebmentions
}