diff options
Diffstat (limited to 'server/controllers/activitypub/utils.ts')
-rw-r--r-- | server/controllers/activitypub/utils.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/server/controllers/activitypub/utils.ts b/server/controllers/activitypub/utils.ts new file mode 100644 index 000000000..599cf48ab --- /dev/null +++ b/server/controllers/activitypub/utils.ts | |||
@@ -0,0 +1,11 @@ | |||
1 | import * as express from 'express' | ||
2 | |||
3 | function activityPubResponse (data: any, res: express.Response) { | ||
4 | return res.type('application/activity+json; charset=utf-8') | ||
5 | .json(data) | ||
6 | .end() | ||
7 | } | ||
8 | |||
9 | export { | ||
10 | activityPubResponse | ||
11 | } | ||