11 lines
224 B
TypeScript
11 lines
224 B
TypeScript
|
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
|
||
|
}
|