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:
parent
cf9b6f5904
commit
5af2aeda7e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user