Передача на бек

This commit is contained in:
iriska-gri committed 2024-04-12 15:47:45 +03:00
1 parent 1347f2ee6e
commit 42ca24ed5a
7 files changed
+220 -134

No files matched your search

+12
View File
@@ -1,3 +1,15 @@
from django.shortcuts import render
from .serializers import *
from .models import *
from rest_framework.views import APIView
from rest_framework.response import Response
class CalendarEventsAPIView(APIView):
def get(self, request):
return Response('ku')
def post(self, request):
print(request.data['calendar'], '---------------------------')
return Response('ru')
# Create your views here.