aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/activitypub/utils.ts
blob: f851ef652d0c2d2a251e58f6cbf9bd4a44a3f396 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import express from 'express'

function activityPubResponse (data: any, res: express.Response) {
  return res.type('application/activity+json; charset=utf-8')
            .json(data)
}

export {
  activityPubResponse
}