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




                                                                 




                     
import * as express from 'express'

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

export {
  activityPubResponse
}