Ivy-Backend/ivy/accounts/views.py
2023-03-29 14:09:24 +08:00

12 lines
388 B
Python

from rest_framework import viewsets, generics
from .serializers import UserSerializer
from django.contrib.auth.models import User
from rest_framework.permissions import IsAuthenticated
# Create your views here.
class UserListViewSet(generics.ListAPIView):
# permission_classes = [IsAuthenticated]
serializer_class = UserSerializer
queryset = User.objects.all()