utils.ts 219 B

12345678910
  1. import 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. }
  6. export {
  7. activityPubResponse
  8. }