StudE-Backend/stude/courses/views.py

9 lines
227 B
Python
Raw Permalink Normal View History

2023-06-27 14:16:40 +08:00
from rest_framework import generics
from .models import Course
from .serializers import CourseSerializer
class CourseListView(generics.ListAPIView):
serializer_class = CourseSerializer
queryset = Course.objects.all()