mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2025-01-19 07:03:01 +08:00
10 lines
337 B
Python
10 lines
337 B
Python
from rest_framework import generics
|
|
from rest_framework.permissions import IsAuthenticated
|
|
from .serializers import LandmarkSerializer
|
|
from .models import Landmark
|
|
|
|
|
|
class LandmarkListView(generics.ListAPIView):
|
|
serializer_class = LandmarkSerializer
|
|
# permission_classes = [IsAuthenticated]
|
|
queryset = Landmark.objects.all()
|