Files
edx-platform/lms/djangoapps/mobile_api/views.py
2025-09-04 16:21:07 +05:00

21 lines
467 B
Python

"""
Views for the mobile API.
"""
from rest_framework.response import Response
from rest_framework.views import APIView
from lms.djangoapps.mobile_api.models import MobileConfig
class MobileConfigurationView(APIView):
"""
API endpoint that returns mobile configuration data.
"""
def get(self, request, *args, **kwargs):
"""
Get all mobile configurations.
"""
return Response(MobileConfig.get_structured_configs())