PeerTube/server/controllers/activitypub/utils.ts
2021-08-27 15:12:22 +02:00

11 lines
219 B
TypeScript

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