Use proper renderers for activity pub / webfinger

This commit is contained in:
Eliot Berriot 2018-03-29 23:29:47 +02:00
parent 1ec705ba3f
commit cde8732dfa
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
3 changed files with 14 additions and 4 deletions

View file

@ -0,0 +1,9 @@
from rest_framework.renderers import JSONRenderer
class ActivityPubRenderer(JSONRenderer):
media_type = 'application/activity+json'
class WebfingerRenderer(JSONRenderer):
media_type = 'application/jrd+json'