Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit ed71817

Browse files
Add serializer
1 parent 4e4f279 commit ed71817

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

api/gen_ai/serializers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@
33

44
class GenAIAuthSerializer(serializers.Serializer):
55
is_valid = serializers.BooleanField()
6-
repos = serializers.ListField(child=serializers.CharField(), required=False)

api/gen_ai/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from hashlib import sha256
44

55
from django.utils.crypto import constant_time_compare
6+
from api.gen_ai.serializers import GenAIAuthSerializer
67
from rest_framework.exceptions import NotFound, PermissionDenied
78
from rest_framework.permissions import AllowAny
89
from rest_framework.response import Response
@@ -17,6 +18,7 @@
1718

1819
class GenAIAuthView(APIView):
1920
permission_classes = [AllowAny]
21+
serializer_class = GenAIAuthSerializer
2022

2123
def validate_signature(self, request):
2224
key = get_config(

codecov/settings_staging.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
DEBUG = False
66
THIS_POD_IP = os.environ.get("THIS_POD_IP")
7-
ALLOWED_HOSTS = get_config(
8-
"setup", "api_allowed_hosts", default=["stage-api.codecov.dev"]
9-
)
7+
ALLOWED_HOSTS = ["*"]
108
if THIS_POD_IP:
119
ALLOWED_HOSTS.append(THIS_POD_IP)
1210

0 commit comments

Comments
 (0)