utils.ts 243 B

1234567891011
  1. import * as express from 'express'
  2. function activityPubResponse (data: any, res: express.Response) {
  3. return res.type('application/activity+json; charset=utf-8')
  4. .json(data)
  5. .end()
  6. }
  7. export {
  8. activityPubResponse
  9. }