mirror of
https://github.com/lemeow125/Ivy-Backend.git
synced 2024-11-16 22:29:25 +08:00
12 lines
388 B
Python
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()
|