Add an endpoint to know if a server is an etebase server or not.

Very useful for when migrating people from legacy EteSync apps because
we can automatically know if they are running a self-hosted etesync or
etebase server.
This commit is contained in:
Tom Hacohen committed 2020-08-18 12:03:00 +03:00
1 parent cf9b6f5904
commit 5af2aeda7e
1 file changed
+4
+4
View File
@@ -687,6 +687,10 @@ class AuthenticationViewSet(viewsets.ViewSet):
return None
@action_decorator(detail=False, methods=['GET'])
def is_etebase(self, request, *args, **kwargs):
return Response({}, status=status.HTTP_200_OK)
@action_decorator(detail=False, methods=['POST'])
def login_challenge(self, request, *args, **kwargs):
from datetime import datetime