15 lines
339 B
JavaScript
15 lines
339 B
JavaScript
|
|
const got = require('got')
|
|
const dayjs = require('dayjs')
|
|
|
|
async function sendWebmentions(domain, config) {
|
|
const url = `${config.endpoint}/webmention/${domain}/${config.token}`
|
|
|
|
// this is an async call and will return 202 to say "started sending them out".
|
|
const result = await got.put(url)
|
|
}
|
|
|
|
module.exports = {
|
|
sendWebmentions
|
|
}
|