
from users.models import Post
from .serializer import PostSerializer
from rest_framework.viewsets import ModelViewSet
# Create your views here.

class PostViewSet(ModelViewSet):
    queryset = Post.objects.all().order_by('id')[:10]
    serializer_class = PostSerializer
