add prodcut ai chat bot
This commit is contained in:
@@ -13,6 +13,7 @@ import ghasedak_sms
|
||||
class SendOTPView(APIView):
|
||||
permission_classes = [AllowAny]
|
||||
@extend_schema(
|
||||
tags=["Authentication"],
|
||||
request={
|
||||
"application/json": {
|
||||
"type": "object",
|
||||
@@ -68,9 +69,9 @@ class SendOTPView(APIView):
|
||||
|
||||
class CustomTokenObtainPairView(TokenObtainPairView):
|
||||
serializer_class = CustomTokenObtainPairSerializer
|
||||
# @extend_schema(
|
||||
# tags=["Authentication"]
|
||||
# )
|
||||
@extend_schema(
|
||||
tags=["Authentication"]
|
||||
)
|
||||
def post(self, request, *args, **kwargs):
|
||||
phone = request.data.get("phone")
|
||||
otp = request.data.get("otp")
|
||||
|
||||
Reference in New Issue
Block a user