fix: redirection issues and instance validation changes

This commit is contained in:
sriram veeraghanta 2024-05-10 19:34:40 +05:30
parent 0ad8bf7664
commit 2ef3c06da0
14 changed files with 170 additions and 54 deletions

View file

@ -38,6 +38,8 @@ class InstanceEndpoint(BaseAPIView):
@cache_response(60 * 60 * 2, user=False)
def get(self, request):
instance = Instance.objects.first()
print("Instance: ", instance)
# get the instance
if instance is None:
return Response(