rubberguppe/pub/federation.js

15 lines
297 B
JavaScript
Raw Normal View History

'use strict'
const request = require('request-promise-native')
// federation communication utilities
module.exports = {
requestObject,
}
function requestObject (id) {
return request({
url: id,
headers: {Accept: 'application/activity+json'},
json: true,
})
}