McDuck/stacking/views.py
2024-08-29 14:21:58 +05:00

15 lines
386 B
Python

from rest_framework import viewsets
from .models import UserStake, Stake
from .serializers import UserStakeSerializer, StakeSerializer
class UserStakeViewSet(viewsets.ModelViewSet):
queryset = UserStake.objects.all()
serializer_class = UserStakeSerializer
class StakeViewSet(viewsets.ModelViewSet):
queryset = Stake.objects.all()
serializer_class = StakeSerializer