Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Philipp Wolfer
funkwhale
Commits
76eec470
Commit
76eec470
authored
2 years ago
by
Georg Krause
Committed by
Georg Krause
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
feat(manifest): Use proper Renderer class for spa manifest
parent
425b7e96
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
api/funkwhale_api/common/renderers.py
+5
-0
5 additions, 0 deletions
api/funkwhale_api/common/renderers.py
api/funkwhale_api/instance/views.py
+2
-0
2 additions, 0 deletions
api/funkwhale_api/instance/views.py
with
7 additions
and
0 deletions
api/funkwhale_api/common/renderers.py
0 → 100644
+
5
−
0
View file @
76eec470
from
rest_framework.renderers
import
JSONRenderer
class
ActivityStreamRenderer
(
JSONRenderer
):
media_type
=
"
application/activity+json
"
This diff is collapsed.
Click to expand it.
api/funkwhale_api/instance/views.py
+
2
−
0
View file @
76eec470
...
...
@@ -15,6 +15,7 @@ from rest_framework.response import Response
from
funkwhale_api
import
__version__
as
funkwhale_version
from
funkwhale_api.common
import
middleware
from
funkwhale_api.common
import
preferences
from
funkwhale_api.common.renderers
import
ActivityStreamRenderer
from
funkwhale_api.federation.models
import
Domain
from
funkwhale_api.federation.actors
import
get_service_actor
from
funkwhale_api.users.oauth
import
permissions
as
oauth_permissions
...
...
@@ -123,6 +124,7 @@ class SpaManifest(generics.GenericAPIView):
permission_classes
=
[]
authentication_classes
=
[]
serializer_class
=
serializers
.
SpaManifestSerializer
renderer_classes
=
[
ActivityStreamRenderer
]
@extend_schema
(
operation_id
=
"
get_spa_manifest
"
)
def
get
(
self
,
request
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment