aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/controllers/activitypub/utils.ts
blob: 599cf48ab0e762959018a015919cc15717134530 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                 
import * as express from 'express'

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

export {
  activityPubResponse
}