PeerTube/server/controllers/activitypub/utils.ts

11 lines
219 B
TypeScript
Raw Normal View History

2021-08-27 14:32:44 +02:00
import express from 'express'
function activityPubResponse (data: any, res: express.Response) {
return res.type('application/activity+json; charset=utf-8')
.json(data)
}
export {
activityPubResponse
}