Skip to content
Snippets Groups Projects
Verified Commit bf3b3854 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

See #573: Added missing type / version in getLicense endpoint

parent ccd600ec
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,7 @@ from rest_framework import renderers, response, viewsets ...@@ -8,6 +8,7 @@ from rest_framework import renderers, response, viewsets
from rest_framework.decorators import list_route from rest_framework.decorators import list_route
from rest_framework.serializers import ValidationError from rest_framework.serializers import ValidationError
import funkwhale_api
from funkwhale_api.activity import record from funkwhale_api.activity import record
from funkwhale_api.common import preferences from funkwhale_api.common import preferences
from funkwhale_api.favorites.models import TrackFavorite from funkwhale_api.favorites.models import TrackFavorite
...@@ -122,6 +123,8 @@ class SubsonicViewSet(viewsets.GenericViewSet): ...@@ -122,6 +123,8 @@ class SubsonicViewSet(viewsets.GenericViewSet):
data = { data = {
"status": "ok", "status": "ok",
"version": "1.16.0", "version": "1.16.0",
"type": "funkwhale",
"funkwhale-version": funkwhale_api.__version__,
"license": { "license": {
"valid": "true", "valid": "true",
"email": "valid@valid.license", "email": "valid@valid.license",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment