1
0
Fork 0
peertube/server/controllers/activitypub/utils.ts

13 lines
267 B
TypeScript
Raw Normal View History

2021-08-27 08:32:44 -04:00
import express from 'express'
async function activityPubResponse (promise: Promise<any>, res: express.Response) {
const data = await promise
return res.type('application/activity+json; charset=utf-8')
.json(data)
}
export {
activityPubResponse
}