create initial models and mobile test for mojtaba eshaghi
This commit is contained in:
9
apps/core/api.py
Normal file
9
apps/core/api.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from rest_framework import viewsets
|
||||
from apps.core.models import MobileTest
|
||||
from rest_framework.response import Response
|
||||
from apps.core.serializers import MobileTestSerializer
|
||||
|
||||
|
||||
class MobileTestViewSet(viewsets.ModelViewSet):
|
||||
queryset = MobileTest.objects.all()
|
||||
serializer_class = MobileTestSerializer
|
||||
Reference in New Issue
Block a user