def METHOD_NAME(request):
    if request.method == "GET":
        subscribers = Subscribers.objects.all().order_by("-pk")
        serializer = SubscribeSerializer(
            subscribers, many=True, context={"request": request}
        )
        response_data = serializer.data
        return Response(response_data, status=status.HTTP_200_OK)
    elif request.method == "POST":
        email = request.data.get("email")
        # When user has already subscribed
        if Subscribers.objects.filter(email=email).exists():
            response_data = {
                "message": "You have already subscribed to EvalAI"
            }
            return Response(response_data, status=status.HTTP_400_BAD_REQUEST)
        serializer = SubscribeSerializer(data=request.data)
        if serializer.is_valid():
            serializer.save()
            response_data = {
                "message",
                "You will be notified about our latest updates at {}.".format(
                    email
                ),
            }
            return Response(response_data, status=status.HTTP_201_CREATED)
        return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)