mirror of
https://github.com/lemeow125/InfoTech-Backend.git
synced 2024-11-17 06:29:26 +08:00
17 lines
559 B
Python
17 lines
559 B
Python
from rest_framework import viewsets, generics
|
|
from .models import TimeSlot, TimeSchedule
|
|
from .serializers import TimeScheduleSerializer, TimeSlotSerializer
|
|
|
|
# Create your views here.
|
|
|
|
|
|
class TimeSlotViewSet(viewsets.ModelViewSet):
|
|
# permission_classes = [IsAuthenticated]
|
|
serializer_class = TimeSlotSerializer
|
|
queryset = TimeSlot.objects.all()
|
|
|
|
|
|
class TimeScheduleViewSet(viewsets.ModelViewSet):
|
|
# permission_classes = [IsAuthenticated]
|
|
serializer_class = TimeScheduleSerializer
|
|
queryset = TimeSchedule.objects.all()
|