mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2024-11-17 06:19:24 +08:00
9 lines
227 B
Python
9 lines
227 B
Python
|
from rest_framework import generics
|
||
|
from .models import Course
|
||
|
from .serializers import CourseSerializer
|
||
|
|
||
|
|
||
|
class CourseListView(generics.ListAPIView):
|
||
|
serializer_class = CourseSerializer
|
||
|
queryset = Course.objects.all()
|