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

This commit is contained in:
Eliot Berriot 2018-10-21 20:22:50 +02:00
parent ccd600ecca
commit bf3b3854dc
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
1 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,7 @@ from rest_framework import renderers, response, viewsets
from rest_framework.decorators import list_route
from rest_framework.serializers import ValidationError
import funkwhale_api
from funkwhale_api.activity import record
from funkwhale_api.common import preferences
from funkwhale_api.favorites.models import TrackFavorite
@ -122,6 +123,8 @@ class SubsonicViewSet(viewsets.GenericViewSet):
data = {
"status": "ok",
"version": "1.16.0",
"type": "funkwhale",
"funkwhale-version": funkwhale_api.__version__,
"license": {
"valid": "true",
"email": "valid@valid.license",