1
0
mirror of https://github.com/etesync/server synced 2024-12-27 09:48:24 +00:00

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 2020-08-18 12:02:56 +03:00
parent cf9b6f5904
commit 5af2aeda7e

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